openai / openai/codex

Astra keep trying to use python scripts for editing files instead of "apply_patch" tool

Open
#43,714 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI model-behavior
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

codex-cli 0.153.4

What subscription do you have?

plus

Which model were you using?

gpt-6-astra low

What platform is your computer?

Darwin 25.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

WezTerm

Codex doctor report

What issue are you seeing?

Every new session it's trying to use python to edit the files. I have to insist to use "apply_patch". I'm using Rust btw.

What steps can reproduce the bug?

start new session, ask to edit some file

What is the expected behavior?

Use "apply_patch" tool

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior in a new Codex CLI session by asking Astra to edit a file, then compare its use of Python scripts with the expected apply_patch tool. Done means the model consistently chooses apply_patch for file edits in the reported codex-cli 0.153.4 scenario, including the Rust project context.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.