apply_patch problems - cannot be found
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.908.40834
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Almost 50% of tokens eaten by main agent just to fix apply_patch problems.
From another agent analysis:
apply_patchwas not accessible like ordinal PowerShell command, so agent tried to run internal versioned...\Codex\bin\<hash>\codex.exe --codex-run-as-apply-patch.
Additional tries were made to find the runner, what's more complicated problems with PowerShell quiting. Hard coded path depended on Codex version.
This problem comes back again and again. Actually in every task that agent has to do.
It just gets rid off my tokens.
What steps can reproduce the bug?
I just try agent to execute task written on GitHub. Agent has no problems with reading the issue, but has just problem with apply_patch tool.
What is the expected behavior?
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns the Windows Codex App's apply_patch execution through PowerShell; begin by reproducing an agent task that invokes apply_patch and observe how command discovery fails. Done means apply_patch is found and runs without repeated path-search attempts or avoidable token use.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, rust
- Domain
- cli, developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100