mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why `codex exec` could force the approval policy to `never`, overriding configured approvals on new threads and saved approvals when continuing a thread. ## What changed New local and remote threads use their configured approval settings. Resumed and forked threads inherit the source thread's approval policy and reviewer independently. An explicit local CLI or profile override changes the supplied setting and saves it on the resulting thread. Before an interactive approval can be requested, `codex exec` warns on stderr when the effective settings call for a human reviewer. Exec rejects those requests immediately because it runs non-interactively. ## Testing Regression tests cover approval outcomes, warnings, and saved settings across local and remote runs. They also cover managed sandbox validation against an inherited approval policy. GitOrigin-RevId: 5d3499f7a59ce16b8d909e669e9f74682f6c3b69