mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed - Add protocol types and `ResponseItem` helpers for attaching and clearing locally recorded tool-call names and arguments. - Bound serialized metadata across a prompt, replacing oversized arguments and omitted calls with trusted truncation details. - Prevent deserialized response items or model-provided arguments from forging locally generated tool-call and truncation metadata. ## Testing - Cover prompt-wide size limits, omission accounting, idempotent bounding, and forged truncation markers. GitOrigin-RevId: 960a223437ce81fe6b4cbb5fc7a9774408b2755b
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.