mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why Fresh TUI sessions sent the locally resolved approval policy in `thread/start`, overriding the app server's configured default. Local constraints could also prevent the TUI from adopting the policy returned by the server. ## What changed - Send explicit approval policy overrides at startup and otherwise let the server resolve the policy. Preserve the resolved-config behavior for selected profiles. - Forward granular `approval_policy` overrides with their replacement and dotted-key merge semantics. - Forward eligible projectless approval defaults only when allowed by the server's approval policy requirements. - Accept the server's startup policy before submitting initial or queued input, including when local constraints would reject it. ## Testing Extend startup tests to cover explicit override precedence, granular policy merging, projectless defaults, and use of the server's approval policy on the first turn. GitOrigin-RevId: 995ce5f21b04b058d60c2ea80a139c0cf48c0e98