fix(vscode): preserve streaming scroll intent - #13500
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Reviewed by grok-4.6 · Input: 250K · Output: 19.1K · Cached: 423.7K Review guidance: REVIEW.md from base branch |
marius-kilocode
enabled auto-merge
August 27, 2026 08:46
WebReflection
approved these changes
Aug 27, 2026
WebReflection
left a comment
Contributor
There was a problem hiding this comment.
Interesting, I had similar issues and I've fixed it in a simpler way here and here.
I am writing this for historical sake, no action needed, it's just a possible future reference in case we'd like to refactor current streaming logic and simplify a bit the scrolling common issue all streaming content has.
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Chat could snap back to the bottom while a response was streaming after an upward wheel or keyboard gesture. The failure was intermittent when the gesture landed on message controls, was only one pixel, or raced a pending bottom scroll and status transition.
Why This Change Was Made
The auto-scroll state now records the latest viewport position, preserves newer upward intent across pending scroll events, does not force-follow when work resumes if the user is paused, and treats upward keyboard input as a pause. Regression coverage exercises the real MessageList story with native wheel and keyboard input.
User Impact
Users can read earlier output while streaming without the transcript pulling them back to the bottom. Explicitly returning to the bottom still resumes auto-follow.
Evidence