Skip to content

cline-agent-chat-panel: UI becomes unusable in long sessions due to unvirtualized message list #515

@nzneit

Description

@nzneit

What happened?

In sessions with many accumulated chat messages, the browser UI slows to a crawl and eventually becomes unresponsive. cline-agent-chat-panel.tsx renders every message as a live DOM node with no virtualization. Layout and paint cost scales linearly with total message history rather than the visible viewport, so long-running agent sessions progressively degrade until the app is unusable.

Steps to reproduce

  1. Run one or more agent tasks through a long session (hundreds of messages accumulated)
  2. Switch between task cards and observe chat panel lag
  3. Scroll the message list while streaming is active

Scrolling, switching tasks, and general interaction become progressively sluggish. With enough history the app becomes effectively unusable.

Expected behavior

The UI remains responsive regardless of message history length.

Kanban version

0.1.68

Environment

All browsers and all OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions