fix(webui): stop auto-scroll from fighting user scroll during streaming #124
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics!124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ui-scroll-autoscroll"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
While the model is streaming, user scroll in the chat history is constantly fought by auto-scroll: the viewport keeps being yanked back (stale scroll anchor restore + tail snapping) instead of staying where the user scrolled.
Root cause
if (_messageWindowRenderPromise) return;) before updating direction/tail-follow state. During streaming, renders are nearly continuous, so_messageWindowFollowTailstayed pinnedtrueand user scrolls were never registered.renderMessageWindowcaptured a scroll anchor at render start and restored it at render end, overwriting scroll positions the user changed mid-render.Fix
Verification
node --check webui/js/messages.jscleanpytest tests/test_webui_message_ordering_static.py tests/test_webui_message_window.py— 15 passedWork done in git worktree
symbolics-fix-ui-scroll-autoscrollfrommain.Pull request closed