anomalyco / anomalyco/opencode

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

Open
#42,964 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 17, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.