Skip to content

Conversation

@jeanlaurent
Copy link
Member

When scrolling up to read earlier messages while the AI is streaming output, the viewport
would jump back to the bottom with each new chunk of text, making it impossible to read
previous content.

Solution

• Track when user manually scrolls away from bottom ( userHasScrolled flag)
• Only auto-scroll if user hasn't manually scrolled
• Reset flag when user scrolls back to bottom naturally

Behavior

• At bottom: Auto-scrolls as content streams (unchanged)
• Scrolled up: Content stays in place, no forced scrolling
• Scroll to bottom: Resumes auto-scroll behavior

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
@jeanlaurent jeanlaurent requested a review from a team as a code owner November 24, 2025 13:21
@rumpl rumpl merged commit 2d1bf9c into docker:main Nov 24, 2025
5 checks passed
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.

2 participants