mirror of
https://github.com/charmbracelet/crush.git
synced 2026-05-30 18:47:33 +00:00
Previously the chat list pulled the entire rendered output of every on-screen item into a buffer and then trimmed it down to the viewport height at the end. For very tall items, like a long reasoning block, that meant building a buffer with thousands of lines just to throw most of them away every frame. The list now stops collecting lines as soon as the viewport is full, so per-frame work is bounded by the visible window. Output is unchanged. Co-Authored-By: Charm Crush <crush@charm.land>