[PR #29984] fix(chat): reset scroll state when switching conversations #32638

Closed
opened 2026-02-21 20:51:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29984

State: closed
Merged: Yes


Summary

  • Track first message ID to detect conversation switches
  • Reset userScrolledRef when conversation changes
  • Ensures chat auto-scrolls to latest message after switching

Test plan

  • Start a conversation with multiple messages
  • Scroll up in the conversation
  • Switch to another conversation
  • Switch back - verify latest message is visible
  • Verify new messages still trigger auto-scroll

Fixes #29820

**Original Pull Request:** https://github.com/langgenius/dify/pull/29984 **State:** closed **Merged:** Yes --- ## Summary - Track first message ID to detect conversation switches - Reset `userScrolledRef` when conversation changes - Ensures chat auto-scrolls to latest message after switching ## Test plan - [x] Start a conversation with multiple messages - [x] Scroll up in the conversation - [x] Switch to another conversation - [x] Switch back - verify latest message is visible - [x] Verify new messages still trigger auto-scroll Fixes #29820
yindo added the pull-request label 2026-02-21 20:51:47 -05:00
yindo closed this issue 2026-02-21 20:51:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32638