auto approve not working - mingw64 - mingw

Resolved 💬 2 comments Opened Oct 15, 2025 by wayneforrest Closed Nov 15, 2025

What version of Codex is running?

codex-cli 0.46.0

Which model were you using?

gpt-5-codex

What platform is your computer?

MINGW64_NT-10.0-26100-ARM64 3.6.4-b9f03e96.x86_64 x86_64 unknown

What steps can reproduce the bug?

Using M1 MacOS + Parallels + Windows ARM64 + mingw64 (bash)

Apple M1 hardware does not support nested virtualisation, thus no WSL support, on Windows in a VM.

1: Auto Approve is not working.
Asks repeatedly for edits.

2: Also it is finding it hard to make edits to files, I have seen it write python scripts, to modify files.
All the standard tools are available like git, grep, ln, sed, awk.

3: Also when it modifies files, which are Windows .cpp and .h files, it ignores that the existing files are all CR LF terminated. All edits that codex makes, are newline terminated, then I have to fix this in Visual Studio.

What is the expected behavior?

1: Auto Approve is not working.
When I Auto allow edits, it must not prompt me several times over and over, when Auto is selected.
Every edit it makes, I am prompted.

2: When I approve commands, it must generalise the approval, allow the command without the parameters.
It appears it is taking the parameters into account, and asks me over and over for the same command.

✔ You approved codex to run bash --noprofile -lc "nl -ba somefile.cpp | sed -n '960,1070p'" every time this session

• Ran bash --noprofile -lc "nl -ba somefile | sed -n '960,1070p'"
  └    960            some text
       961            some text
    … +7 lines
      1069        some text
      1070        {

✔ You approved codex to run bash --noprofile -lc "nl -ba somefile.cpp | sed -n '1070,1150p'" every time this session

• Ran bash --noprofile -lc "nl -ba somefile | sed -n '1070,1150p'"
  └   1070        {
      1071            some text
    … +7 lines
      1149            some text

3: It is not finding the right tools. It is writing Python scripts - which is just a waste of time, in order to edit files.
burning my tokens than required.

4: Also when it modifies files, which are Windows cpp files, it ignores that the files are CR LF terminated.
Then in Visual Studio, I keep reverting changes to CR LF.

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗