Skip to content

Windows Codex app: apply_patch hangs indefinitely while shell commands continue working #35449

Description

@codeneedluv2

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?

  1. Open a local project in the Windows Codex desktop app.

  2. Request a one-line patch to .gitignore.

  3. Codex invokes apply_patch.

  4. The operation remains pending for more than 60–180 seconds.

  5. Interrupt the operation.

  6. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions