mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why The requesting thread's rollout lacks per-response token usage for Guardian work, including requests that consume tokens without producing a usable result. ## What changed Persist reported token usage from Guardian reviews, background review compaction, and classifier requests in the requesting thread's rollout. Each record identifies the requesting turn, response, and model, and marks incomplete responses that report usage. These records stay separate from the thread's cumulative token totals and are excluded from forked history. ## Testing Cover review attribution and unchanged parent token totals, compaction that reports usage without a usable summary, and thread shutdown waiting for an interrupted classifier's usage write. GitOrigin-RevId: da5d3711cdb7c7aeab829d3537ef59b724c57171
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.