Windows Codex Desktop: internal apply_patch stalls indefinitely across projects while ordinary exec commands work

Open
#34,171 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
powershell, rust
Domain
desktop, tooling

Research direction

Start by reproducing the internal apply_patch stall on Windows across unrelated repositories, using cmd.exe /d /c echo codex-ok as the control test. Trace the apply_patch and PowerShell fallback entry points and compare them with ordinary command execution; done means substantive and UTF-8 edits complete without indefinite stalls.

Written by the indexing model from the issue text.

Description

app bug tool-calls windows-os
What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.715.31925

What subscription do you have?

Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?
Image

. Ordinary commands such as cmd.exe /d /c echo codex-ok work under Codex. The failure occurs across repositories and agents, particularly during substantive or UTF-8 edits. Agents then attempt PowerShell file-update fallbacks, which may also stall. Reinstalling, upgrading, and rebooting did not resolve it.

What steps can reproduce the bug?

This has occurred across multiple unrelated repositories and agents, so it does not appear to be repository-specific. It appears more frequently during substantive or UTF-8 file edits.

Control test inside Codex:

cmd.exe /d /c echo codex-ok

This completes successfully and returns codex-ok, showing that ordinary command execution works while the patch/editing path intermittently stalls.

Model observed: GPT-5.6-Sol Medium

What is the expected behavior?

This has occurred across multiple unrelated repositories and agents, so it does not appear to be repository-specific. It appears more frequently during substantive or UTF-8 file edits.

Control test inside Codex:

cmd.exe /d /c echo codex-ok

This completes successfully and returns codex-ok, showing that ordinary command execution works while the patch/editing path intermittently stalls.

Model observed: GPT-5.6-Sol Medium

Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

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.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.