Skip to content

fix: don't force auto-scroll when user scrolled up during streaming#972

Open
ebarroca wants to merge 1 commit intopreviewfrom
fix-autoscroll-preview
Open

fix: don't force auto-scroll when user scrolled up during streaming#972
ebarroca wants to merge 1 commit intopreviewfrom
fix-autoscroll-preview

Conversation

@ebarroca
Copy link
Contributor

Summary

  • When streaming is active, the conversation auto-scrolled to the bottom unconditionally, yanking the user back down even if they had scrolled up to read earlier content
  • Now tracks user scroll position and suppresses auto-scroll when the user has scrolled away from the bottom
  • Auto-scroll resumes naturally when the user scrolls back to the bottom

Test plan

  • Start an agent conversation that produces streaming output
  • While streaming, scroll up to read earlier messages
  • Verify you stay where you are and are NOT pulled back to the bottom
  • Scroll back to the bottom and verify auto-scroll resumes

🤖 Generated with Claude Code

When streaming is active, the conversation auto-scrolls to the bottom.
Previously this happened unconditionally, yanking the user back down
even if they had scrolled up to read earlier content. Now we track
user scroll position and suppress auto-scroll when they've scrolled
away from the bottom. Auto-scroll resumes when they scroll back down.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ebarroca ebarroca requested a review from a team as a code owner February 27, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants