Failed to apply patch
Open 💬 4 comments Opened Apr 1, 2026 by mgryning
What version of Codex CLI is running?
codex-cli 0.118.0
What subscription do you have?
Pro
Which model were you using?
Gpt-5.4
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
Windows Terminal
What issue are you seeing?
Apply_patch fails ~30% of the times after Codex have been running some time. I get a nice purple X failed to apply patch
But it's not consistent. Files that fails seems to work fine after a codex restart. I never had this issue before, and only after upgrading to 0.118.0 in WSL2.
I asked Codex to look in the Codex logs, but i doesn't seem like the failed attempts are properly logged.
What steps can reproduce the bug?
I cannot reproduce it properly. Asking codex to apply_patch in a fresh instance works fine.
What is the expected behavior?
Apply_patch works like previous versions <= 118
Additional information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗