[BUG] Review panel freezes when expanding large file diffs in app #9157

Open
opened 2026-02-16 18:11:46 -05:00 by yindo · 1 comment
Owner

Originally created by @cooooooooooode on GitHub (Feb 12, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

In the web/desktop app review panel, files with large diffs (500+ changed lines) are auto-expanded when opening the panel. This causes the UI to freeze or become very laggy because thousands of diff lines are rendered at once.

The current logic in packages/ui/src/components/session-review.tsx only checks file count (>10 files → collapse all), but ignores individual file diff size. A single file with 2000+ changed lines can freeze the entire review panel.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Start a session that modifies a large file (500+ line changes)
  2. Open the review panel (right side panel)
  3. Observe the UI freezes while rendering the large diff

Screenshot and/or share link

No response

Operating System

macOS / any

Terminal

No response

Originally created by @cooooooooooode on GitHub (Feb 12, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description In the web/desktop app review panel, files with large diffs (500+ changed lines) are auto-expanded when opening the panel. This causes the UI to freeze or become very laggy because thousands of diff lines are rendered at once. The current logic in `packages/ui/src/components/session-review.tsx` only checks file count (>10 files → collapse all), but ignores individual file diff size. A single file with 2000+ changed lines can freeze the entire review panel. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce 1. Start a session that modifies a large file (500+ line changes) 2. Open the review panel (right side panel) 3. Observe the UI freezes while rendering the large diff ### Screenshot and/or share link _No response_ ### Operating System macOS / any ### Terminal _No response_
yindo added the perfweb labels 2026-02-16 18:11:46 -05:00
Author
Owner

@neriousy commented on GitHub (Feb 13, 2026):

Fixed in #13460

@neriousy commented on GitHub (Feb 13, 2026): Fixed in #13460
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9157