apply_patch fails everytime

Resolved 💬 1 comment Opened Mar 7, 2026 by priyank766 Closed Mar 7, 2026

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 ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗