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
codex-protocol
This crate defines the "types" for the protocol used by Codex CLI, which includes both "internal types" for communication between codex-core and codex-tui, as well as "external types" used with codex app-server.
This crate should have minimal dependencies.
Ideally, we should avoid "material business logic" in this crate, as we can always introduce Ext-style traits to add functionality to types in other crates.