mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why The app server completed command items for rejected approval responses directly in the live stream. That bypassed core's history recording, so clients could see a completed command live and lose it when reloading the turn. ## What changed Keep top-level command items with their pending approvals in core. Record and emit the command completion before unblocking the turn. Declines and cancellations produce a `declined` item, while invalid responses and approval request failures produce a `failed` item. ## Testing App-server integration tests cover cancellation, decline, and malformed responses. They check that `item/completed` precedes `turn/completed` and that paginated history returns the same command item after restart. GitOrigin-RevId: d3d95272c8a6af2fa65fa980f312260313cc5e32
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.