Skip to content

Allow disabling auto-scroll on new token in the web interface #1252

@JeffKwasha

Description

@JeffKwasha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions