-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the feature
Please add a user setting to disable auto-scrolling in the web chat interface.
Use Case
As long responses steam in, users need to scroll up to read earlier content but every new token forcibly scrolls to the bottom.
This is a standard feature in many AI tools (e.g., ChatGPT has a ‘stop scrolling’ button).
Proposed Solution
Why This Happens
The auto-scroll behavior is implemented in the frontend (React/Next.js) using logic like this:
chatContainer.scrollTop = chatContainer.scrollHeight;
This ensures the latest message is always visible — but it ignores whether the user has manually scrolled up.
A smarter implementation (like in Ojansen/chat-auto-scroll) only auto-scrolls if the user is already at the bottom 🥇
Additional Information
No response
PS: The bulk of this feature request was written by Khoj after I asked it how to fix autoscrolling. 👍
No response