openai / openai/codex

Windows Desktop 26.803.10989.0: apply_patch hangs indefinitely while shell I/O works

Open
#38,190 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug tool-calls windows-os
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?
  1. Open the official Microsoft Store Codex Desktop app on Windows.
  2. Open a writable workspace.
  3. Invoke a minimal patch:
*** Begin Patch
*** Add File: .codex-patch-test.txt
+patch service test
*** End Patch
  1. Observe that the tool remains running indefinitely.
  2. Terminate the tool after 20-40 seconds.
  3. Verify that .codex-patch-test.txt was not created.
  4. Run Test-Path .codex-patch-test.txt or 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.exe
  • codex-code-mode-host.exe
  • codex-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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.