mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## What changed Add the multi-agent v2 setting `interrupt_at_item_boundary`, disabled by default. When enabled, `interrupt_agent` lets a subagent finish and retain its current output item while cancelling tools immediately. Later output items are discarded, and retained tool calls that have not run receive an aborted result. Wait for the interrupted turn's terminal event before starting follow-up input, and prevent idle contributors from restarting the interrupted child. ## Testing Add streaming tests for retaining an assistant message or tool call, discarding later output, and preserving history and follow-up input when the child resumes. Update configuration and interrupt-routing tests. GitOrigin-RevId: 8b2b9b1383bfb4eefea7369a40012bebc5fff07b