codex icon indicating copy to clipboard operation
codex copied to clipboard

[Windows] apply_patch always prompts for approval

Open tomasmarekk opened this issue 1 year ago • 10 comments

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

tomasmarekk avatar Aug 26 '25 10:08 tomasmarekk

same issue here

ghost avatar Aug 26 '25 12:08 ghost

same issue

aliceric27 avatar Aug 27 '25 07:08 aliceric27

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

Nonary avatar Aug 27 '25 23:08 Nonary

same

himomohi avatar Aug 28 '25 05:08 himomohi

same here

piyalitt avatar Aug 28 '25 18:08 piyalitt

Made a PR to fix https://github.com/openai/codex/pull/2988

Sing303 avatar Aug 31 '25 13:08 Sing303

can someone merge?

angeloprado avatar Sep 02 '25 07:09 angeloprado

Same issue... :/

beetree avatar Sep 03 '25 00:09 beetree

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

bolinfest avatar Sep 06 '25 00:09 bolinfest

npm install -g @openai/codex@latest

Windows is so back:)

angeloprado avatar Sep 06 '25 05:09 angeloprado