Skip to content

"apply_patch verification failed" on Windows #27282

Description

@micheljung

Description

Same as #10360, reportedly fixed. Still/again happening sometimes. I'm not sure when.

Some of the reported problems by the LLM (GPT-5.1):

The patch failed because the exact header text has diverged.
The patch failed because my hunks used prefixed line numbers from the reader instead of matching exact file content
The patch failed due to line-number anchoring
The patch failed because my line-number-based hunk didn’t match the current file contents.
The patch failed due to an exact-line mismatch, likely because of quoting differences.
The patch failed due to slightly different import ordering/spacing than I assumed.

Maybe the model just produces illegal patches?

Plugins

None

OpenCode version

1.14.48

Steps to reproduce

  1. Ask it to create some file.
  2. Create a new session and ask it to update the file

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions