mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## Why Child agents configured to interrupt at item boundaries should retain the summary when interrupted during remote compaction. An interrupt during post-turn compaction should also preserve the answer already completed. ## What changed - Keep sampling interrupt registration active through summary installation, then honor the pending interrupt without running post-compaction hooks. - Deliver an already completed answer when post-turn compaction is interrupted. - Keep queued follow-ups for a new turn instead of continuing the interrupted turn. ## Testing Add a streaming scenario test and context snapshot covering interrupts during mid-turn and post-turn remote compaction. Verify that resumed requests retain the summaries, the completed answer is delivered, and each queued follow-up starts a separate turn. GitOrigin-RevId: 939eb8b3ed24dbdbff10c9f62226e38a0198fd6f