mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why When a fresh async review already reaches the soft reset limit, adding evidence can trigger another rebuild that replays the same large transcript on every check. ## What changed If a fresh review reports usage at or above `async_classifier_conversation_token_limit`, allow projected input to grow up to 20,000 tokens beyond that first report. Use the latest reported usage to estimate each continuation while keeping the ceiling anchored to the fresh review. The model's input limit still applies. For this extra allowance, rebuild when reported usage is missing or the next request would truncate elastic context or omit whole transcript entries from the fixed window. A fresh review with elastic truncation cannot start the allowance. ## Testing Extend coverage for reuse across multiple reviews, resets at the growth ceiling and model input limit, missing usage, and transcript evidence recovered by rebuilding. GitOrigin-RevId: 4c5c69a898b83e051241b06c324773a0b9e46ede
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.