ab694586b2
The sessionByAnyId map only indexed cronSessions and visibleSessions (local CLI chats), so a pinned gateway session (Telegram, etc.) stored its pinId in localStorage but could never be resolved back to a SessionInfo object — the Pinned section rendered empty for those. Include messagingSessions in the lookup so pinned gateway chats appear correctly at the top of the sidebar.