[PR #6511] fix: optimize session rendering to prevent freezing in long sessions #11948

Open
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6511

State: open
Merged: No


Summary

  • Prevents UI freezing in long sessions by collapsing older messages
  • Renders only the last 50 messages by default
  • Adds a collapsible banner to expand full history when needed

Changes

  • Modified Session component to compute visibleMessages subset
  • Added "Show older messages" banner in the scrollbox
  • Auto-expands if fewer than 50 messages
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6511 **State:** open **Merged:** No --- ## Summary - Prevents UI freezing in long sessions by collapsing older messages - Renders only the last 50 messages by default - Adds a collapsible banner to expand full history when needed ## Changes - Modified `Session` component to compute `visibleMessages` subset - Added "Show older messages" banner in the scrollbox - Auto-expands if fewer than 50 messages
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11948