mirror of
https://github.com/openai/codex.git
synced 2026-10-23 15:32:54 +00:00
## What changed - Add optional per-model Guardian modes for computer use, shell, code mode, file changes, MCP, network, and permission requests. - Apply disabled, synchronous, or adaptive review by action category while preserving legacy configuration when model policy is absent. - Bind cached risk scores to the active model policy, thread settings, and environment selections so outdated scores cannot approve later actions. - Keep unknown review modes on the synchronous path and ignore unknown policy fields for forward compatibility. ## Testing - Cover policy serialization, legacy fallback, scoped tool classification, disabled categories, and score invalidation after policy changes. GitOrigin-RevId: f334a5f4fffb198da66cde3a400233e0df650516
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.