Skip to content

fix(amazonq): add auto-scroll to chat when new messages arrive#6177

Open
amit-lulla wants to merge 1 commit intoaws:mainfrom
amit-lulla:fix/auto-scroll-chat
Open

fix(amazonq): add auto-scroll to chat when new messages arrive#6177
amit-lulla wants to merge 1 commit intoaws:mainfrom
amit-lulla:fix/auto-scroll-chat

Conversation

@amit-lulla
Copy link
Copy Markdown

Summary

Add auto-scroll functionality to Amazon Q chat so the conversation automatically scrolls to show new messages.

Changes

  • Add scrollToBottom() helper method in main.ts
  • Call scroll after addChatItem() in key message handlers:
    • onChatAnswerReceived
    • onCodeTransformMessageReceived
    • onCodeScanMessageReceived
    • onError
    • onOpenSettingsMessage

Test plan

  • Verify chat auto-scrolls when new messages arrive
  • Verify smooth scroll behavior
  • Lint passes (pre-existing errors only)

@amit-lulla amit-lulla requested a review from a team as a code owner January 13, 2026 15:14
Add scrollToBottom helper method and call it after addChatItem
to ensure chat automatically scrolls to show new messages.

Fixes auto-scroll issue where users had to manually scroll
during conversations.
@amit-lulla amit-lulla force-pushed the fix/auto-scroll-chat branch from 3cfa6cb to 74f6d46 Compare January 14, 2026 20:57
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.

1 participant