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
- Deferred interrupted-turn session items are never persisted when an approval resume goes through next_step_run_again, leaving an orphaned function_call_output, dixso, opened 2026-09-02; closed as completed on 2026-10-06: "a
function_call_outputwhosefunction_callwas never written." - fix(sessions): persist deferred approval history across resumes, dixso; merged 2026-10-06 (closed).
- v0.24.0, released 2026-10-15.
- v0.26.0, released 2026-11-24.
- Tagged source: src/agents/run_internal/session_persistence.py, v0.26.0.
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