Skip to content

Conversation

@amit-lulla
Copy link

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