mirror of
https://github.com/openai/codex.git
synced 2026-03-05 21:45:28 +03:00
Add a separate app-server turn parameter for ephemeral context and keep it runtime-only in core. Render it in the contextual envelope as additional_context, strip it during normal compaction, and preserve only the active turn during mid-turn compaction. Tests: - cargo test -p codex-protocol - cargo test -p codex-app-server-protocol - cargo test -p codex-app-server - cargo test -p codex-mcp-server - cargo test -p codex-core ephemeral_context Co-authored-by: Codex <noreply@openai.com>
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.