codex icon indicating copy to clipboard operation
codex copied to clipboard

Approval Mode: Never still asks for approval on Windows OS

Open cowwoc opened this issue 1 year ago • 11 comments

What version of Codex is running?

codex-cli 0.20.0

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?

  1. Set:
approval_policy = "never"
sandbox_mode    = "workspace-write"

in ~/.codex/config.toml 2. Ask the agent to make changes to the code 3. It will propose a patch and wait for the user to confirm that it should be applied.

What is the expected behavior?

Apply patches without confirmation

What do you see instead?

Agent waits for user approval

Additional information

No response

cowwoc avatar Aug 11 '25 14:08 cowwoc

I am having this issue as well. It makes using the codex mcp unusable for anything that would require an approval

SinkHoleLabs avatar Aug 11 '25 18:08 SinkHoleLabs

@seratch What makes you think this is Windows-specific?

cowwoc avatar Aug 12 '25 15:08 cowwoc

For tasks that involve writing after 0.21.0 I am getting a diff approval request for every individual line of code that is changed

SinkHoleLabs avatar Aug 12 '25 16:08 SinkHoleLabs

Same for me. I don't think this issue is OS-specific.

cowwoc avatar Aug 12 '25 16:08 cowwoc

Bummer! Currently using a 9v battery to hold down my enter key for a long code change..

JTrivia avatar Aug 12 '25 17:08 JTrivia

This happens to me on Windows, but on Mac it works fine.

frederikocmr avatar Aug 13 '25 21:08 frederikocmr

Happens for me too. strange thing is...in some sessions auto approval actually works...but very rarely.

FreddyE1982 avatar Aug 14 '25 09:08 FreddyE1982

When it will be fix? ;(

eduardofacunha avatar Aug 15 '25 02:08 eduardofacunha

does someone have a workaround for this?

kmltln avatar Aug 16 '25 10:08 kmltln

Same issue reported for Windows OS at https://github.com/openai/codex/issues/2350

seratch avatar Aug 18 '25 09:08 seratch

I'm experiencing as well: version 0.22.0 and Windows 11.

al-labs avatar Aug 21 '25 16:08 al-labs