Skip to content

πŸ” [TRACKING] Chat Scrollbar Jumping Issue - Investigation & ResolutionΒ #7063

@daniel-lxs

Description

@daniel-lxs

πŸ” [TRACKING] Chat Scrollbar Jumping Issue - Investigation & Resolution

Overview

Parent tracking issue for the chat scrollbar jumping problem during long conversations. The view jumps to the middle of the conversation during streaming, making it impossible to follow responses.

Status: 🟑 Investigation In Progress - Cannot reproduce, need more data before implementing fix.

Symptoms

  • Chat scrollbar jumps to middle during streaming
  • Occurs primarily in long conversations
  • Manual scrolling doesn't help - keeps jumping back
  • Reasoning blocks reset to "Thinking..." after jump (components unmounting)
  • Exact trigger conditions unknown

Related Issues & PRs

Reports

PRs

Suspected Causes

  1. Array Index Shifting - When messages exceed 500, array slicing causes indices to shift (ChatView.tsx:899-902)
  2. Component Unmounting - Virtuoso unmounts components outside viewport, losing state
  3. Unknown Triggers - May not be limited to 500+ messages

Information Needed

From users experiencing the issue:

  • Message count when issue occurs
  • Consistency of reproduction
  • Content type being streamed
  • Window size/resolution
  • Video recording with DevTools console

Next Steps

  1. Gather reproduction data from affected users
  2. Create reliable reproduction steps
  3. Test PR fix: remove 500-message limit to prevent scrollbar jumping in long conversationsΒ #7053 with confirmed reproduction
  4. Consider safer incremental fixes if root cause remains unclear

Action Items

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions