mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
The chat view was starting at the top showing oldest messages instead of scrolling to the bottom to show the latest messages (like WhatsApp). Root causes: 1. scheduleChatScroll() was called without force flag in refreshActiveTab() 2. The scroll was targeting .chat-thread element which has overflow:visible and doesn't actually scroll - the window scrolls instead Fixes: - Pass force flag (!chatHasAutoScrolled) when loading chat tab - Wait for Lit updateComplete before scrolling to ensure DOM is ready - Scroll the window instead of the .chat-thread container - Use behavior: 'instant' for immediate scroll without animation