Increased "Failed to apply patch" errors

Resolved 💬 2 comments Opened Sep 18, 2025 by Alfredo-Sandoval Closed Oct 19, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.38.0

Which model were you using?

gpt-5 high

What platform is your computer?

Linux 6.14.0-29-generic x86_64 x86_64

What steps can reproduce the bug?

Use Codex.

<img width="392" height="139" alt="Image" src="https://github.com/user-attachments/assets/5cf49f40-7a00-4d06-b949-c9dfec1ad0e9" />

What is the expected behavior?

Apply patches faithfully. It is currently taking 3+ attempts to apply edits.

What do you see instead?

Mangled edits, and patch workarounds.

Additional information

_No response_

View original on GitHub ↗

2 Comments

bwat47 · 11 months ago

it's happening in the vs code extension too, it seems like this started happening within the last week, I wasn't having issues with this until the last few days

tibo-openai collaborator · 10 months ago

We've made some improvements here in v 0.45 and 0.46 and this should be significantly improved. Please open a new issue if you still further problems related to apply_patch.