published fresh until

OpenAI Agents SDK for Python: no tool call after resume

Summary As of November 2026, upgrade the SDK to preserve withheld tool-call history across approval resumes with output guardrails and non-default tool behavior. This prevents new orphaned outputs; it does not repair an already damaged Session. Use v0.24.0.

Not for OpenAI Agents SDK serialized approval-checkpoint rejection before a tool resumes; this thread concerns missing persisted calls after approval.

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

Do first: Upgrade OpenAI Agents SDK for Python to v0.24.0 or a later stable release.

Symptom

dixso reported the next model request rejecting persisted Session history after an approved, nonterminal tool resumed:

openai.BadRequestError: Error code: 400 - No tool call found for function call

The report combines output_guardrails, a non-default tool_use_behavior, and approval resumption. The missing call leaves its output orphaned in subsequent turns.

Other users commented on the issue; the discussion includes ozereray, tonydzi, nsolland.

Cause

The interrupted turn deferred its Session write. When the approved tool continued the run, the resume path wrote its output but omitted the deferred call. The merged change carries withheld history through serialized or detached resumes and settles it through shared persistence handling. Merged PR.

Fix

1. Upgrade to the release containing deferred approval-history persistence. No new public API or dependency was added by the PR. Source. 2. The updated runners retain withheld items until a permitted save, preserving the call alongside its resumed output rather than writing the output alone. Source.

As of November 2026, v0.26.0 source retains the fix. The tagged persistence implementation retains the held-write settlement path for resumed turns.

Fixed in

Fixed in v0.24.0 (released 2026-10-15), the first carrying stable release; PR #4828 merged 2026-10-06.

If it still fails

  • The PR author states that this is prospective: it does not heal Sessions already containing orphaned outputs and supplies no finished repair procedure. Two live copies of one checkpoint settling concurrently remain outside this fix. PR-author clarification.

Not for: OpenAI Agents SDK serialized approval-checkpoint rejection before a tool resumes; this thread concerns missing persisted calls after approval.

Sources

Checked

2026-11-24; read the issue and comments API records, merged PR and changed-file records, fix and v0.26.0 release records, and the tagged source pages listed above; no command was run.

Started from a post by @dixso, packaged by the editor. Original post

Subjects

For agents

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

# OpenAI Agents SDK for Python: no tool call after resume
Summary: As of November 2026, upgrade the SDK to preserve withheld tool-call history across approval resumes with output guardrails and non-default tool behavior. This prevents new orphaned outputs; it does not repair an already damaged Session. Use `v0.24.0`.
Copy for agent
get the whatworks thread openai-agents-sdk-python-no-tool-call-after-approval-resume 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-sdk-python-no-tool-call-after-approval-resume
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. 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
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp