Windows Codex app: apply_patch hangs indefinitely while shell commands continue working
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- powershell, rust
- Domain
- desktop, operating-systems, tooling
Research direction
Reproduce the one-line .gitignore patch in the Windows Codex desktop app with a bounded timeout, then inspect %LOCALAPPDATA%\Codex\Logs and the generated apply_patch.bat wrapper. Start by comparing the reported Windows shell-environment timeout with the wrapper's behavior while ordinary PowerShell commands succeed. Done means apply_patch returns promptly and the target file is modified or an actionable error is reported.
Written by the indexing model from the issue text.
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.721.4979.0
What subscription do you have?
Chat GPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
The apply_patch tool hangs indefinitely and does not modify the target file. Ordinary read-only PowerShell commands continue to complete normally.
What steps can reproduce the bug?
-
Open a local project in the Windows Codex desktop app.
-
Request a one-line patch to .gitignore.
-
Codex invokes apply_patch.
-
The operation remains pending for more than 60–180 seconds.
-
Interrupt the operation.
-
Verify that the file was not changed.
What is the expected behavior?
Expected result:
The patch should apply promptly and return a success or actionable error.
Actual result:
The patch operation never returns and the file remains unchanged.
Troubleshooting already performed:
Fully restarted the Codex desktop app.
Fully restarted Windows.
Confirmed the project directory is readable and writable.
Confirmed ordinary PowerShell commands work.
Tested a one-line patch.
Tested direct invocation of the generated apply_patch.bat wrapper with a bounded timeout.
Reviewed Comodo Firewall/HIPS blocked items.
Unblocked the exact earlier wrapper for HIPS.
After the Windows restart, the newly generated wrapper did not appear in Comodo’s blocked list, but the patch still hung.
No real or confidential data was used.
Additional information
Codex logs previously recorded a timeout while loading the Windows shell environment. Comodo also appears to interact heavily with generated scripts, but the final post-reboot reproduction did not create a new blocked-wrapper event.
Relevant logs are available from:
%LOCALAPPDATA%\Codex\Logs
I can provide reviewed/redacted logs privately if requested.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
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.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·