Duo Chat: when agent generates a long code snippet, user can not scroll within the code block
Summary
When agent generates a long code snippet, user can not scroll within the code block
Steps to reproduce
- Ask Duo Chat to generate a large and complex script
- Try scrolling in the code block while it is streamed
Example Project
- gitlab.com
What is the current bug behavior?
User can not scroll within the snippet, while the code snippet is being streamed which creates a "jiggling" effect. User can, however, scroll outside of the code snippet in the chat area around the code
What is the expected correct behavior?
User can scroll within the code snippet and see the code streamed
Relevant logs and/or screenshots
Possible fixes
The behavior can, probably, relate to the fact that we try to scroll to the bottom of the chat when streaming, but it doesn't take these code blocks into consideration. So when user starts scrolling, the scroll a bit only before they are "interrupted" with a new chunk coming in and, hence, the whole chat scrolling down to the last line of the chat, which is, actually, just a Duo Chat loader