You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As our bot streams new content in the user wont see it unless they scroll down manually. I added a CSS hack to scroll to the newest message added to the conversation so the user sees it is there, but as the bot streams in content the user still needs to scroll manually. It would be nice if it scrolled automatically with all of the UX complicated (stop auto scrolling when the user takes control, etc) handled by the library
The text was updated successfully, but these errors were encountered:
This is something that we've been avoiding integrating into the library. We offer a basic demo of scrolling in the docs, and also make refs available on the MessageBox for scrolling there as well. I'm open to bringing this up for discussion again now that we have a better sense of the use cases. (Folks are using this extension for streaming output, as well as non-streaming output, and may want to customize their own streaming to reflect product needs.)
Auto-scrolling is tricky. The ref basically sits between a message or potentially at the end of the stream, but then kind of "clamps" the position to the end, preventing the user to "go up" when the bot streams quicker than the user can read.
For some scenarios, it could be good to scroll down one time when the bot has responded a bit, but then give control to the user.
Let's plan on doing some investigation - if we can ship something configurable so they can turn off scrolling and do their own thing, maybe we can do this. We can't force everyone onto one solution.
As our bot streams new content in the user wont see it unless they scroll down manually. I added a CSS hack to scroll to the newest message added to the conversation so the user sees it is there, but as the bot streams in content the user still needs to scroll manually. It would be nice if it scrolled automatically with all of the UX complicated (stop auto scrolling when the user takes control, etc) handled by the library
The text was updated successfully, but these errors were encountered: