[Windows] apply_patch always prompts for approval

Resolved 💬 10 comments Opened Aug 26, 2025 by tomasmarekk Closed Sep 6, 2025
💡 Likely answer: A maintainer (Sing303, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.24.0-alpha.9

Which model were you using?

gpt-5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

There is still a critical issue on Windows with approving file creation and edits. It prompts the user for approval every time.

In my config.toml I have:

projects = { 'C:\' = { trust_level = "trusted" } }
approval_policy = "never"
sandbox_mode = "danger-full-access"

yet it is not respected. In WSL and Linux distributions it works fine. Could you please fix this issue?

As a temporary workaround I removed the approval block entirely from the Rust files. It works, but it is probably not an ideal solution.

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

10 Comments

ghost · 10 months ago

same issue here

aliceric27 · 10 months ago

same issue

Nonary · 10 months ago

Well... funnily enough codex-cli can actually fix this bug because I tried it and recompiled it and confirmed it worked

himomohi · 10 months ago

same

piyalitt · 10 months ago

same here

Sing303 contributor · 10 months ago
angeloprado · 10 months ago

can someone merge?

beetree · 10 months ago

Same issue... :/

bolinfest collaborator · 10 months ago

Fix now available in 0.30.0! https://github.com/openai/codex/releases

angeloprado · 10 months ago

npm install -g @openai/codex@latest

Windows is so back:)