Skip to content

Chat UI virtualization (perf on large conversations) #860

Closed

Description

@samanthamsong

Epic: «Chat & everyday UX feel great» (#839)
Backlog Doc ID: #19 · Priority: P1 · Area: chat & ux

Description
Large conversations hurt performance; virtualize the chat list.

Definition of done
Large conversations scroll smoothly with virtualization.

Part of the «Chat & everyday UX feel great» tracking issue (#839).

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 26, 2026, 2:40 PM ET / 18:40 UTC.

    Summary
    Keep open: current main still renders the native chat timeline by constructing rows for every entry inside a ScrollView/VStack path, and I did not find a chat-specific virtualized list implementation or a merged replacement. The broader chat UX tracking issue at #839 remains open and lists this as child work.

    Reproducibility: not applicable. as a feature/performance backlog item. Source inspection shows the current native timeline constructs an element per entry inside a ScrollView/VStack path, but the report does not provide a runtime perf threshold or trace.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    This is a focused chat UI performance feature with clear likely files, but it is medium complexity and needs real scroll-performance validation.

    Review details

    Best possible solution:

    Add chat-specific virtualization in OpenClawChatTimeline, likely through an ItemsRepeater-backed or FunctionalUI virtualized list host, while preserving the existing chat interaction and scroll semantics.

    Do we have a high-confidence way to reproduce the issue?

    Not applicable as a feature/performance backlog item. Source inspection shows the current native timeline constructs an element per entry inside a ScrollView/VStack path, but the report does not provide a runtime perf threshold or trace.

    Is this the best way to solve the issue?

    Yes, virtualizing the native chat timeline is the right maintainable direction for this request. The existing A2UI ItemsRepeater virtualization is separate and does not solve the OpenClawChatTimeline renderer used by the chat page.

    AGENTS.md: found, but no applicable review policy affected this item.

    Remaining risk / open question:

    • The issue does not include a concrete conversation size, scroll FPS target, or runtime trace, so the implementation should add measurable before/after proof rather than only changing the control tree.
    • Virtualizing this renderer must preserve existing scroll-to-bottom, scroll offset restore, tool-call nesting, hover actions, text selection, thinking indicator placement, and history replay behavior.

    Codex review notes: model internal, reasoning high; reviewed against 1c377cb64b65.

    Label changes

    Label changes:

    • add P2: Large chat history performance is a normal-priority user-facing improvement with a limited chat UI blast radius.
    • add impact:other: The issue is about chat UI performance and smooth scrolling, which is maintainer-visible but outside the more specific owned impact labels.
    • add issue-rating: 🌊 off-meta tidepool: Current issue advisory state selects this label.

    Label justifications:

    • P2: Large chat history performance is a normal-priority user-facing improvement with a limited chat UI blast radius.
    • impact:other: The issue is about chat UI performance and smooth scrolling, which is maintainer-visible but outside the more specific owned impact labels.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj --no-restore

    What I checked:

    Likely related people:

    • kenehong: The chat timeline history shows a large run of chat UI commits from kenehong, including tool card layout, bubble alignment, and nested tool burst rendering in the same renderer path. (role: feature-history owner; confidence: high; commits: 1287011c9f56, 4c522a3252e0, 6301d78b6bea; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs)
    • RBrid: Régis Brid introduced the native FunctionalUI chat experience and recently changed the chat timeline/root/data-provider path for inline exec approvals. (role: introduced behavior and recent area contributor; confidence: high; commits: 08cab69a038c, 4e7982bafb86, 7d9152f427a3; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs)
    • christineyan4: Christine Yan authored prior chat UI polish and performance/scroll-preservation work and appears repeatedly in the chat timeline history. (role: adjacent chat performance contributor; confidence: medium; commits: 488f26509ced, 9478e953dc38, a482ca9e1713; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:other
    issue-rating: 🌊 off-meta tidepool
    on Jun 26, 2026
  3. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    🦞⚠️
    Automatic implementation stopped before completion.
    Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
    Worker: https://github.com/openclaw/clawsweeper/actions/runs/28265737565

  4. added
    P1
    and removed
    P2
    on Jun 26, 2026
  5. added theissue type on Jun 26, 2026
  6. locked as resolved and limited conversation to collaborators on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1impact:otherissue-rating: 🌊 off-meta tidepool

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions