mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why External tool events may need to enter thread history without a preceding function call and therefore do not have a `call_id`. ## What changed - Allow `function_call_output` items to omit `call_id` and carry optional `name` and `namespace` fields. - Preserve named standalone outputs during history normalization and agent forks while retaining existing pairing behavior for outputs with a `call_id`. - Accept, persist, and forward these outputs through `thread/inject_items`, and update the app-server schemas and documentation. ## Testing - Cover paired and standalone JSON round trips, history normalization, agent forks, and injected thread history. GitOrigin-RevId: a3258163a7dc93777c7c3023116fe204819bdbb0
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.