mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## Why Model catalogs could provide guidance for Plan and for Default after Plan, but had no field for the turns before the first Plan turn. ## What changed Add optional `collaboration_modes.initial` guidance. Codex uses it in Default before the first Plan turn when the field is nonempty and no caller-supplied instructions take precedence. ## Testing Add a request snapshot test that covers initial guidance on a new thread, retains it after resume, and verifies the switch to Plan guidance and then to Default guidance when leaving Plan. GitOrigin-RevId: bb9e83aeb60af54fc2ee1bf9ce5acbb8a354ffb8
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.