Fix chat auto-scroll during streaming responses#928
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 1c03660 | May 11 2026, 04:03 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 1c03660 | Commit Preview URL Branch Preview URL |
May 11 2026, 04:04 PM |
|
Claude finished @ved015's task in 1m 16s —— View job Review: PR #928 - Fix chat auto-scroll during streaming responses
Overview: Adds auto-scroll behavior during AI response streaming using a ref to track scroll position and a MutationObserver to detect DOM changes. Issues found: None — this looks good to ship. The implementation is solid:
Score: 10/10 |
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
MaheshtheDev
approved these changes
May 11, 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.
Summary
Fixed the chat interface to automatically scroll down as the AI model streams its response. Previously, the chat only scrolled when the user sent a message, but not when the assistant's response was being generated.
Changes Made
useEffecthook to detect when streaming status changes and scroll to bottomMutationObserverto detect DOM content changes during streaming and auto-scroll in real-timeChecked on local
Screen.Recording.2026-05-11.at.9.05.41.PM.mov