Skip to content

fix: preserve approved tool output on streamed resume - #4126

Merged
seratch merged 1 commit into
mainfrom
fix/streamed-resume-tool-output-persistence
Aug 2, 2026
Merged

fix: preserve approved tool output on streamed resume#4126
seratch merged 1 commit into
mainfrom
fix/streamed-resume-tool-output-persistence

Conversation

@seratch

@seratch seratch commented Aug 2, 2026

Copy link
Copy Markdown
Member

This pull request fixes streamed interruption resume so an explicitly approved function tool's call/output pair is persisted before agent output guardrails run. This keeps Runner.run_streamed aligned with Runner.run, prevents orphaned tool calls and forgotten side effects after a tripwire, and preserves the existing post-guardrail save order for ordinary final outputs.
This pull request resolves #4125.

@seratch seratch added this to the 0.19.x milestone Aug 2, 2026
@seratch
seratch enabled auto-merge (squash) August 2, 2026 23:21
@seratch
seratch merged commit 9d894a9 into main Aug 2, 2026
9 checks passed
@seratch
seratch deleted the fix/streamed-resume-tool-output-persistence branch August 2, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output guardrail trip leaves orphaned tool call on streamed resume

1 participant