Codex using Python to implement/edit code instead of apply_patch

Resolved 💬 4 comments Opened Oct 18, 2025 by MateeJr Closed Nov 11, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.47.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

GPT-5-Codex High

What platform is your computer?

Darwin 23.6.0 x86_64 i386

What issue are you seeing?

Codex often using python or some EOS code thing to apply edit or implement code! this is very annoying since it takes longer to finish it, it'll use apply_patch if i force it to do it by prompting manually. Please fix so it'll always use built in read, apply_patch edit, etc tools from codex instead of manual commands/python

What steps can reproduce the bug?

Happening 80% of the time

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #3953
  • #3858
  • #3947
  • #4233

Powered by Codex Action

hi-fox · 10 months ago

How can Gemini CLI do a readmanyfile operation and read 10k lines in 10 seconds but I still have to approve 140 powershell getcontent commands for Codex to do the same thing? Does it not have built-in operations that handle this yet? My instance is also using python to try and read certain parts of files too as well as the same issue the OP has

davidbenhaim · 9 months ago

you can't see the edits its making with the python scripts:

Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('server/src/routes/api/equipment.js')
  │ … +151 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted
      File "<stdin>", line 135
        replace2 = '    maintenanceLinks:
    Array.isArray(installedAsset.maintenanceLinks)

    ^
    SyntaxError: EOL while scanning string literal

• Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('server/src/routes/api/equipment.js')
  │ … +133 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted

• Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('server/src/routes/api/equipment.js')
  │ … +13 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted

• Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('server/src/routes/api/equipment.js')
  │ … +16 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted

• Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('server/src/routes/api/equipment.js')
  │ … +257 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted

• Ran python3 - <<'PY'
  │ from pathlib import Path
  │ path = Path('client/src/lib/api.js')
  │ … +48 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not
    permitted

with the apply patch we can so I can live monitor it

etraut-openai contributor · 9 months ago

Thanks for the bug report. We've shared the feedback with the team members who are responsible for training our codex models. We're tracking this feedback and similar reports so we can make the model more robust in future iterations.

If you see other model behavior that you'd like to report, please use the recently-added /feedback command in the CLI. That will provide us with additional details including logs and conversation text.