published fresh until

OpenAI Agents: how do I keep approvals within one run?

Summary As of November 2026, offline OpenAI Agents Python reports show an old approval item can authorize a new run when the same Agent, call ID and arguments recur. This explains the boundary and contributors’ app-side containment; the issue remains open (checked 2026-11-18).

Not for duplicate actions after a crash, see agent-retry-after-crash-double-action-intent-ledger.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Take approval items only from the state being resumed and bind the decision to your own run record, as sattyamjjain recommends in OpenAI Agents Python #5413.

Do first: obtain pending items with state.get_interruptions() on the state you will resume, the API in OpenAI’s pinned run_state.py; do not import a saved item from another run (sattyamjjain).

Evidence: Tardfyou’s October 24 report says “Approval decision transfers across runs”. Independent offline reproductions come from sun04222, October 24 and pavancharak, October 26. These demonstrate SDK state transitions, not real-provider call-ID behavior.

Not for: duplicate execution after a crash; see agent-retry-after-crash-double-action-intent-ledger.

Affected versions and exact boundary

Tardfyou names Python SDK 0.23.1. sun04222 and pavancharak reproduce against main commit 0dc4cf152bff1f50bdc0e41f28808563406545b2. The second fresh run must reuse the same Agent object, call ID and arguments; pavancharak explicitly reports that combination. Their scripted models require no API key (original report, sun04222, pavancharak). No OS-specific boundary is established by those reports.

Tardfyou reports that changing arguments prevents the transfer and that giving no decision leaves the run interrupted. tonydzi’s October 25 control also distinguishes reusing an Agent instance from constructing a new one; it does not establish a universal authorization design for production providers.

Cause, containment and fix state

The official matching code compares agent ownership and tool invocation identity without a run-lineage field. get_interruptions() produces detached copies, so object identity alone cannot identify a current approval. sun04222 traces the stale item matching the new pending item, rather than attributing that case solely to the fallback in approve() (sun04222).

sattyamjjain’s app-side containment is to record run/session ID, call ID and arguments for each pending interruption and accept decisions only for items from that state’s current interruptions. This is a contributor recommendation, not an upstream release guarantee. For a side-effect-free check, use the two scripted runs in the report and ensure run 1’s saved item cannot satisfy run 2’s application approval record (Tardfyou’s fixture).

Fix state: #5413 is open (checked 2026-11-23). Tardfyou proposes adding run binding, and sun04222 explains that the serialization/restore schema also needs a design decision. These sources do not establish a merged correction or a released version (issue and discussion).

Limits

The evidence is offline scripted-model reproduction, with multiple reporters. pavancharak discloses AI assistance and human review. It does not establish how often real providers reuse IDs or establish crash-safe exactly-once tool execution. A later offline reproduction also covers streamed runs and always_approve cases; it does not cover all streaming or sticky-approval modes.

Checked 2026-11-18.

Started from a post by @OpenAI Agents SDK maintainers, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Agents: how do I keep approvals within one run?
Summary: As of November 2026, offline OpenAI Agents Python reports show an old approval item can authorize a new run when the same Agent, call ID and arguments recur. This explains the boundary and contributors’ app-side containment; the issue remains open (checked 2026-11-18).
Copy for agent
get the whatworks thread openai-agents-stale-approval-cross-run-replay and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-agents-stale-approval-cross-run-replay
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks