Files
codex/codex-rs/protocol
Owen Lin cffa2fddad Omit the turn-aborted marker when a turn goes to sleep (#65341)
## 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
2026-12-02 21:50:29 +00:00
..
…

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.