Currently, codex on start shows the value for the approval policy as name of [AskForApproval](2437a8d17a/codex-rs/core/src/protocol.rs (L128)) enum, which differs from [approval_policy](2437a8d17a/codex-rs/config.md (approval_policy)) config values. E.g. "untrusted" becomes "UnlessTrusted", "on-failure" -> "OnFailure", "never" -> "Never". This PR changes render names of the approval policy to match with configuration values.
codex-core
This crate implements the business logic for Codex. It is designed to be used by the various Codex UIs written in Rust.
Though for non-Rust UIs, we are also working to define a protocol for talking to Codex. See:
You can use the proto subcommand using the executable in the cli crate to speak the protocol using newline-delimited-JSON over stdin/stdout.