mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why A parent turn can acknowledge a child agent's final reply while a model request is in flight. If the parent is interrupted before consuming the queued reply, turn cleanup can discard it. ## What changed Record queued agent messages in conversation history during interruption and flush the rollout before emitting `TurnAborted`, even when the interruption marker is disabled. ## Testing Add a regression test that interrupts a parent while a child's final reply is queued. The test checks that the reply is persisted when `TurnAborted` arrives and appears exactly once in the next model request. GitOrigin-RevId: 5bd828c4101942fa4fe7ba5040355a8244f02018