apply_patch fails everytime

Resolved 💬 2 comments Opened Mar 7, 2026 by priyank766 Closed Mar 7, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

0.108.0-alpha.12

What subscription do you have?

Go

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

The apply_patch/default file-edit function is unreliable in this Codex setup on Windows.

Observed behavior:

Creating test.md with apply_patch returned exit code 1 with no output, but the file was still created.
Updating the existing test.md with apply_patch returned exit code 1 with no output, and the file was not changed.
Multiline updates also returned exit code 1 with no output, and no changes were applied.
Direct shell-based file edits work, so general workspace write access is fine.

every time it failed patch step and then runs shell commands to solve that e

What steps can reproduce the bug?

NA

What is the expected behavior?

The apply_patch/default file-edit function is unreliable in this Codex setup on Windows.

Observed behavior:

Creating test.md with apply_patch returned exit code 1 with no output, but the file was still created.
Updating the existing test.md with apply_patch returned exit code 1 with no output, and the file was not changed.
Multiline updates also returned exit code 1 with no output, and no changes were applied.
Direct shell-based file edits work, so general workspace write access is fine.

every time it failed patch step and then runs shell commands to solve that e

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #13574

Powered by Codex Action

salvia34 · 1 month ago

+1 (with latest Windows Codex App)