Skip to content

Bug: Git changes showing full file rewrite instead of small diffs #21068

Closed as not planned

Description

@Vedant9500

Description

Hey OpenCode team,

I think there is a bug with how git changes are being rendered. I made some small changes to my files, but the UI is showing it like I changed the whole file.

In the first view, it correctly shows +36 -12 for library.py. But when I go to the Review tab, it jumps to +1047 -1023. It’s doing this for all files, even the YAML ones.

It looks like the diff engine is failing and just replacing the whole file instead of tracking the actual lines I edited.

OpenCode version

v1.3.15

Screenshot and/or share link

Image Image

Operating System

Windows 11

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 5, 2026
  2. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  3. tanushshukla commented on May 19, 2026

    @tanushshukla

    Try running this:

    `
    git config --local core.autocrlf input

    git config --local --unset core.eol

    git update-index --refresh
    `

    And then restart opencode. This fixed for me until I updated opencode.

  4. github-actions commented on Aug 11, 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