opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: optimize session rendering to prevent freezing in long sessions

Open noah79 opened this issue 2 weeks ago • 0 comments

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

noah79 avatar Dec 31 '25 05:12 noah79