Approval Mode: Never still asks for approval on Windows OS

Resolved 💬 11 comments Opened Aug 11, 2025 by cowwoc Closed Oct 17, 2025
💡 Likely answer: A maintainer (seratch, member) responded on this thread — see the highlighted reply below.

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

  1. Ask the agent to make changes to the code
  2. 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_

View original on GitHub ↗

11 Comments

SinkHoleLabs · 11 months ago

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

cowwoc · 11 months ago

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

SinkHoleLabs · 11 months ago

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

cowwoc · 11 months ago

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

JTrivia · 11 months ago

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

frederikocmr · 11 months ago

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

FreddyE1982 · 11 months ago

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

eduardofacunha · 11 months ago

When it will be fix? ;(

kmltln · 11 months ago

does someone have a workaround for this?

seratch member · 11 months ago

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

al-labs · 11 months ago

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