Skip to content

Scrolling behavior on first message #704

Description

@mattlindsey

Weird scrolling behavior reported, especially the first conversation of a chat which always pulls the mouse "down", so user cannot select anything, scroll up, etc. Not only while the LLM streams the tokens, but also after it finishes.

  • Report:
    Seems to be a time-based issue, because it won't be a problem after a few (10 ?) seconds into the chat.
    So in my case (I am on Firefox) the first LLM answer to a question in a conversation always pulls the scrolling area down. The second answer does it as well. The difference is that for the first answer this behaviour even is the case for a limited time after the bot has finished the answer.
    At the same time for the first answer, the whole conversation window flickers like wild, so the text disappears and appears again, then disappears, and appears again. This is not the case for any further answers

  • Developer comment
    I remember running into this issue too. The scroll behavior was quite tricky to implement and I never got it quite right. ChatGPT recently changed theirs to be simpler where it simply scrolls to the top once for each new message and long messages can go below the fold. It might be worth us switching to that

I'd suggest looking at how ChatGPT does scrolling, how HostedGPT does it, then make HostedGPT match. There might be a bunch of code that can be removed (e.g. stimulus controller).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions