Windows Desktop 26.803.10989.0: apply_patch hangs indefinitely while shell I/O works
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.803.10989.0
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
On Codex Desktop for Windows, every apply_patch call hangs indefinitely before applying any filesystem change. This reproduces with a one-line disposable file as well as small updates to existing files.
Normal shell commands can read the workspace immediately, and the workspace is configured writable. The Windows sandbox setup log reports successful setup with errors=[]. No patch attempt appears to reach the sandbox command-runner log.
The behavior persisted after:
- fully terminating all
codex*processes - restarting the official Codex app
- checking Microsoft Store for updates
- disabling Comodo Auto-Containment and trusting the Codex executables
- testing a minimal file in the workspace root
The tool remains in a running state until manually terminated. No target file is created or modified.
This appears similar to openai/codex#34549, openai/codex#34290, openai/codex#13965/openai/codex#13959, and openai/codex#29365, but it still reproduces on app version 26.803.10989.0 with command runner 0.147.0-alpha.6.6.
What steps can reproduce the bug?
- Open the official Microsoft Store Codex Desktop app on Windows.
- Open a writable workspace.
- Invoke a minimal patch:
*** Begin Patch
*** Add File: .codex-patch-test.txt
+patch service test
*** End Patch
- Observe that the tool remains running indefinitely.
- Terminate the tool after 20-40 seconds.
- Verify that
.codex-patch-test.txtwas not created. - Run
Test-Path .codex-patch-test.txtor normal read commands; shell execution completes normally.
Session ID: 019ff59c-6f61-75a3-8d7f-5aa18d26be9f
What is the expected behavior?
A valid one-line patch in a writable workspace should complete within a few seconds, create the file, and return a clear success result. If a helper cannot launch, the tool should fail promptly with the underlying Windows error instead of hanging.
Additional information
Installed package: OpenAI.Codex_26.803.10989.0_x64__2p2nqsd0c76g0
Observed processes:
codex.execodex-code-mode-host.execodex-command-runner-0.147.0-alpha.6.6.exe
The sandbox log shows setup refreshes completing successfully and the command runner being copied/reused from the packaged app. Ordinary shell access to the workspace succeeds. This strongly suggests the hang occurs in the app/tool bridge before the patch reaches filesystem execution.
No WindowsApps ownership or ACL changes were made.
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
Reproduce the hang in the Windows Desktop app with the minimal apply_patch example, then compare the app/tool bridge behavior with the successful shell I/O and sandbox setup logs. Start at the apply_patch path and command-runner boundary mentioned in the report; done means the patch creates the file promptly or returns the underlying Windows launch error instead of remaining running.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100