Skip to content

[Windows] apply_patch always prompts for approval #2710

Closed

Description

@tomasmarekk

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

Activity

  1. added
    bug
    on Aug 26, 2025
  2. aliceric27 commented on Aug 27, 2025

    @aliceric27

    same issue

  3. Nonary commented on Aug 27, 2025

    @Nonary

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

  4. himomohi commented on Aug 28, 2025

    @himomohi

    same

  5. piyalitt commented on Aug 28, 2025

    @piyalitt

    same here

  6. Sing303 commented on Aug 31, 2025

    @Sing303
    Contributor

    Made a PR to fix #2988

  7. angeloprado commented on Sep 2, 2025

    @angeloprado

    can someone merge?

  8. beetree commented on Sep 3, 2025

    @beetree

    Same issue... :/

  9. bolinfest commented on Sep 6, 2025

    @bolinfest
    Collaborator
  10. angeloprado commented on Sep 6, 2025

    @angeloprado

    npm install -g @openai/codex@latest

    Windows is so back:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions