mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why When a turn wakes after a planned sleep, a synthetic `<turn_aborted>` message makes the previous turn look interrupted to the model. ## What changed Skip the model-facing marker for `InterruptIfNoPendingInput`. Continue flushing the rollout before emitting `TurnAborted` so clients can read the latest history when they receive the event. ## Testing Extend the abort lifecycle test to check that the wake-up request contains the prior agent message and omits the `<turn_aborted>` marker. GitOrigin-RevId: fd5deb7f926551fa15edd4bab7d83c81842e4270