-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
4 / 44 of 4 issues completed
Copy link
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Description
π [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
- Chat window scrolling randomly jumps when API calls are madeΒ #6852 - "Chat window scrolling randomly jumps when API calls are made"
- Scrollbar does not stay scrolled to the bottom of the RooCode windowΒ #6987 - "Scrollbar does not stay scrolled to the bottom"
- Scrolling in Roo window jumps aroundΒ #7026 - "Scrolling in Roo window jumps around"
- Fix: Scrollbar jumps to middle of conversation due to array index shifting in long chatsΒ #7052 - Technical analysis of potential root cause
PRs
- Fix: Resolve Memory Leak in ChatView Virtual Scrolling ImplementationΒ #6697 -
β οΈ Introduced regression (added 500-message limit for memory optimization) - fix: Replace scrollToIndex with scrollTo to fix scroll jitterΒ #6780 - β Partial fix (fixed jitter, not jumping)
- fix: improve auto-scroll behavior during API activities and streamingΒ #6989 - π‘ Pending - Improves auto-scroll behavior
- fix: dynamic viewport adjustment to prevent scroll jumping on small screensΒ #7027 - π‘ Pending - Dynamic viewport adjustment
- fix: resolve scroll jumping issue on smaller screensΒ #7028 - π‘ Pending - Conservative message filtering
- fix: remove 500-message limit to prevent scrollbar jumping in long conversationsΒ #7053 - π‘ Pending - Removes 500-message limit (needs verification)
Suspected Causes
- Array Index Shifting - When messages exceed 500, array slicing causes indices to shift (
ChatView.tsx:899-902) - Component Unmounting - Virtuoso unmounts components outside viewport, losing state
- 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
- Gather reproduction data from affected users
- Create reliable reproduction steps
- Test PR fix: remove 500-message limit to prevent scrollbar jumping in long conversationsΒ #7053 with confirmed reproduction
- Consider safer incremental fixes if root cause remains unclear
Action Items
- Collect user reports with specific reproduction details
- Test in environment with 500+ message conversations
- Verify if PR fix: remove 500-message limit to prevent scrollbar jumping in long conversationsΒ #7053 fixes the issue
- Document final root cause and solution
Sub-issues
Metadata
Metadata
Assignees
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done