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 |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||