Skip to content

"apply_patch verification failed" on Windows #27282

Closed as not planned
Closed as not planned

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

Activity

  1. ugurozturk commented on May 23, 2026

    @ugurozturk

    I am having same error on MacOs "apply_patch verification failed: Failed to read file to update: /Volumes/Ki..."

  2. github-actions commented on Jul 23, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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