Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
104
What subscription do you have?
200$
What platform is your computer?
Linux 6.17.0-14-generic x86_64 unknown ubuntu
What issue are you seeing?
codex hits failed to patch CONSTANTLY, even so on version 102 it was Never,. I litereally have never seen it.
I’m moving to implementation now: adding a dedicated live open_search extractor that targets the 5 requested sections and writes a readable HTML
document report. I’ll also include downloaded filename/extension in extraction metadata so the report can show which document format was parsed.
Search text_extraction|open_search|downloaded_filename|text_source|_extract_opened_document_text in tests
• Edited mcp_tools/e_court/src/tool_tree.py (+2 -0)
4119 filename = f"document_{index}"
4120 + meta["downloaded_filename"] = filename
4121 + meta["downloaded_extension"] = Path(filename).suffix.lower()
4122
✘ Failed to apply patch
└ execution error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
• I’m making a small metadata patch in tool_tree so each extracted document includes filename/extension in the report. Then I’ll add the dedicated 5-
document HTML runner.
• Edited mcp_tools/e_court/src/tool_tree.py (+2 -0)
4119 filename = f"document_{index}"
4120 + meta["downloaded_filename"] = filename
4121 + meta["downloaded_extension"] = Path(filename).suffix.lower()
4122
✘ Failed to apply patch
└ execution error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
• Ran pwd && ls -la mcp_tools/e_court/src/tool_tree.py
└ /home/william3/Desktop/projects/site-deepresrach/deepresearch
-rw-rw-r-- 1 william3 william3 237101 Feb 19 16:45 mcp_tools/e_court/src/tool_tree.py
• Edited mcp_tools/e_court/src/tool_tree.py (+2 -0)
4119 filename = f"document_{index}"
4120 + meta["downloaded_filename"] = filename
4121 + meta["downloaded_extension"] = Path(filename).suffix.lower()
4122
✘ Failed to apply patch
│ tool_tree.py
└ (no output)
• Explored
└ Search downloaded_filename|downloaded_extension in tool_tree.py
Read tool_tree.py
What steps can reproduce the bug?
I use 5.3 xhigh, 104 version of cli codex.
What is the expected behavior?
No response
Additional information
No response
Activity
github-actions commentedon Feb 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
miniq15 commentedon Feb 19, 2026
https://github.com/openai/codex/issues/new?template=2-bug-report.yml&steps=Uploaded%20thread:%20019c76a9-3e43-7881-b5c1-81d2ec9ca869
miniq15 commentedon Feb 19, 2026
mention my thread ID 019c76a9-3e43-7881-b5c1-81d2ec9ca869 in an existing issue.
miniq15 commentedon Feb 19, 2026
Update: downgraded to 0.103, it works again !!
etraut-openai commentedon Feb 25, 2026
We haven't heard of this issue from any other users, so there must be something specific about your system or configuration that's causing it.
Do you have any non-default configuration settings in your
config.tomlfile?I reviewed your log file. You said that you were having problems when running 0.104.0, but the log file contained logs for 0.103.0.
StevenShen3641 commentedon Feb 27, 2026
Same issues here after upgrading to 0.105.0
etraut-openai commentedon Feb 27, 2026
@StevenShen3641, please use
/feedbackto upload your logs and session details and post the thread ID here. Without this information, we don't have enough information to investigate further.StevenShen3641 commentedon Feb 27, 2026
Hi,
Thanks for the reply!
The error conversation using codex v0.105.0: 019c9dec-8979-7e60-aca7-beb012173479
The compared conversation using codex v0.81.0 with the same user prompt: 019c9e6f-bfcc-76d1-96eb-b2bed13fe49d
FYI, I am using gpt-5 with codex to do some evaluation. But similar behavior also happens on 5.1-codex and 5.2-codex, which I believe is a bug introduced in some latest version. This phenomena appears for almost half of our evaluations.
The bug seems to be the model keeps using terminal command "applypatch" and fails, and finally, it create some python files under /tmp to apply the patch.
This leads to two consequences:
A possible reason could be: At the start of the conversation, codex failed to feed in the system prompt which contains codex built-in tools.
jif-oai commentedon Feb 28, 2026
Checking
jif-oai commentedon Feb 28, 2026
@miniq15 on
019c76a9-3e43-7881-b5c1-81d2ec9ca869I can see some successfulapply_patchand I don't see the errors you mention@StevenShen3641 we disabled
apply_patchfor gpt-5 in December because the model was not trained on itStevenShen3641 commentedon Feb 28, 2026
Hi,
Thanks for the reply! This is weird, since for later version such as 0.93.0 in Jan, the model can apply the patch successfully for almost all conversations. And in some of the conversations in 0.105.0, the model could apply the patch using built-in tools as well. Is it disabled on Codex side?
jif-oai commentedon Mar 6, 2026
@StevenShen3641 the model does not see the tool but it can still "remember" how to use it based on his training
hackermirror commentedon Mar 22, 2026
019d1648-017b-70f1-958c-22161c073aa8
veilm commentedon Apr 15, 2026
I was seeing this consistently today with gpt-5.4 high. I don't have a
/feedbackfor reference because the codebase is sensitive, but anecdotally I think it may have started, in my previously open codex instance, around the time I upgraded codex through npm in a new terminal.Closing that failing codex instance and using
codex resumeto start it again, seemed to fix it; I didn't see any✘ Failed to apply patchafter thatminiq15 commentedon Apr 21, 2026
i know the issue.
it is because you can have a session THEN if you leave it , update code to newer version then you come back to the session you will have 100% of failed to apply patch.