You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session switching gets progressively slower as message history grows #17775
Switching between sessions becomes progressively slower the more the user has scrolled up through message history. Each round-trip (switch away, switch back) re-fetches an ever-growing number of messages from scratch.
Root cause: meta.limit in sync.tsx grows via loadMore() as the user scrolls up (200 → 400 → 600 → ...). When switching back to a session after the 15s prefetch TTL expires, a force-refresh reuses this inflated limit as the server fetch size — re-downloading the entire browsing history in a single request instead of just the latest page.
Example: user scrolls up through 1000 messages, switches away for 15s, switches back → server is asked for limit=1000 in one request. Next scroll-up grows it to 1200, next switch re-fetches 1200, etc.
Steps to reproduce
Open a session with many messages (100+)
Scroll up several times to load older history (each scroll triggers loadMore, growing the limit)
Switch to a different session
Wait 15 seconds (prefetch TTL)
Switch back to the original session
Observe: network request fetches all previously-loaded messages, not just the latest page
Activity
github-actions commentedon Jul 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.