Skip to content

Fix chat message streaming and autoscrolling#257

Open
CJBuzz wants to merge 3 commits intostgfrom
feat/better-streaming
Open

Fix chat message streaming and autoscrolling#257
CJBuzz wants to merge 3 commits intostgfrom
feat/better-streaming

Conversation

@CJBuzz
Copy link
Collaborator

@CJBuzz CJBuzz commented Feb 14, 2026

Problem

Responses from LLM in the chat section comes out in blocky chunks. The chat section also only scrolls down after the entire message has been sent.

Link to Issue:

Issue

Changes

Responses now appear letter by letter, mimicking a "typing" style. Auto-scrolls down while message is being "typed".

Why

Changes are made for better UI

Testing

Local testing was done.

@CJBuzz CJBuzz linked an issue Feb 14, 2026 that may be closed by this pull request
@CJBuzz CJBuzz removed a link to an issue Feb 15, 2026
@CJBuzz CJBuzz marked this pull request as draft February 15, 2026 12:49
@CJBuzz CJBuzz linked an issue Feb 15, 2026 that may be closed by this pull request
@CJBuzz
Copy link
Collaborator Author

CJBuzz commented Feb 16, 2026

Hi, currently when the user enters another prompt to the chatbot while the response from the previous prompt is still generating, the generating response will be removed entirely. Is that the desired behavior?

Alternatives include

  1. Stop the typing animation of the previous response and immediately display it in full, then continue with the new prompt.
  2. Continue generating the previous message (including with typing animation), then continue with the new prompt.

@CJBuzz CJBuzz marked this pull request as ready for review February 22, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming Fix

1 participant