Skip to content

Desktop becomes unresponsive when Git Changes eagerly loads full-file diffs #42964

Closed as not planned

Description

@wcwishson

Description

Opening a local repository with 29 modified files causes OpenCode Desktop to populate the Review > Git changes panel immediately. The app then becomes effectively unresponsive before the panel can be closed or collapsed.

The repository is not unusually large by file count (158 tracked files, about 9.9 MB of Git metadata), but several changed source files are large. Git's normalized diff was about 1,700 additions and 126 deletions across 19 files. OpenCode instead displayed apparent full-file rewrites such as:

  • MetadataStore.cpp: +21,720 / -21,708
  • FsHostSemanticsTests.cpp: +23,311 / -22,987
  • NativeApfsBackend.cs: +6,662 / -6,635

This repository uses core.autocrlf=true and some edited files contain mixed CRLF/LF endings. Git normalizes those changes correctly, but the desktop review UI appears to process the much larger raw/full-context representation.

Expected: the Git Changes panel should remain responsive, avoid opening/loading expensive diffs automatically, and lazy-load or cap/virtualize large diffs. Line-ending normalization or full-context patches should not freeze the entire app.

Related reports #21068, #21784, #29768, and #21153 are closed, but the problem still reproduces in the current release. The proposed fix in #29928 was closed unmerged; #25581 does not appear to cover this desktop rendering path.

Plugins

No plugin-specific behavior observed.

OpenCode version

1.18.18 (Desktop, Electron 42.3.3)

Steps to reproduce

  1. On Windows with Git core.autocrlf=true, open a repository containing several large source files.
  2. Leave roughly 20-30 files modified, including files with mixed CRLF/LF edits.
  3. Open the repository/session in OpenCode Desktop.
  4. Let the Review / Git Changes side panel appear and populate.
  5. Observe full-file-sized addition/deletion counts and severe UI lag; in this case the app became unusable.

Screenshot and/or share link

A screenshot shows the Review panel listing 29 files with multiple apparent 6k-23k-line full-file rewrites. It can be supplied if needed.

Operating System

Windows 11 Enterprise 64-bit, version 10.0.26200 (build 26200)

Terminal

N/A - OpenCode Desktop

Activity

  1. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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