Skip to content

🐛 Fix unwanted auto-scroll in AiChat.tsx #8

@nerdyabhi

Description

@nerdyabhi

Description
The chat container automatically scrolls to the bottom whenever:

the user types
presses Enter (sends a message)
or when the AI sends a response

This behavior is triggered regardless of the user’s current scroll position.

Problem
If a user scrolls up to read previous messages, the view is forcibly pulled back to the bottom on any new interaction or update, breaking the reading experience.

Expected Behavior

Auto-scroll should only happen if the user is already near the bottom
If the user has scrolled up, the scroll position should be preserved

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions