mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## What changed - Add `restrict_to` helpers that combine parent and requested `WebSearchMode` and `AppToolApproval` values without granting access beyond either policy. - Treat `Auto` and `Writes` approval modes as incomparable, falling back to `Prompt` when they are combined. ## Testing - Cover every pair of web search and app tool approval modes. GitOrigin-RevId: 41b3da5ace2fbdaab667c4b834bc2051a8e5e9cf
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.