Skip to content

Codex using Python to implement/edit code instead of apply_patch #5312

Closed

Description

@MateeJr

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

Activity

  1. added
    bug
    on Oct 18, 2025
  2. hi-fox commented on Oct 20, 2025

    @hi-fox

    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

  3. added
    model-behavior
    on Oct 23, 2025
  4. davidbenhaim commented on Nov 8, 2025

    @davidbenhaim

    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

  5. etraut-openai commented on Nov 11, 2025

    @etraut-openai
    Contributor

    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.

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

    bugmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions