mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Currently, codex on start shows the value for the approval policy as name of [AskForApproval](https://github.com/openai/codex/blob/b0b15d5f5de70ba3e55bc69c7d58b29efa174950/codex-rs/core/src/protocol.rs#L128) enum, which differs from [approval_policy](https://github.com/openai/codex/blob/b0b15d5f5de70ba3e55bc69c7d58b29efa174950/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.