fix(agent-manager): resolve sessionsLoaded race condition with webview mount (#539)
The loading skeleton gates (worktreesLoaded && sessionsLoaded) could permanently block the Agent Manager UI. initializeState() called refreshSessions() which sent sessionsLoaded before the webview's onMount handlers registered, so the signal was lost. Since sessions were already populated, the MessageList backup effect never triggered a retry. Add refreshSessions() to the requestState handler which fires from the webview's onMount, guaranteeing all message listeners are ready.
M
Marius committed
485fa9db52d3fd30305a06379587dfb5dff2d2e5
Parent: c520e45
Committed by GitHub <noreply@github.com>
on 2/20/2026, 4:02:29 PM