Fix fallback_admin missing workspaces after fresh login.

Wait for WS identity before emptying workspace.follow, and hard-reload after login so the first subscribe is not stuck with an anonymous empty baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-08 11:27:05 +08:00
parent 3e5c1f846e
commit e479fe0833
2 changed files with 19 additions and 9 deletions

View file

@ -146,13 +146,10 @@ window.__ModuleLoader__.load({
}
function reconnectAfterLogin() {
try {
if (typeof window.__udsAuthReconnect === 'function') {
window.__udsAuthReconnect()
return
}
} catch { /* fall through */ }
window.location.reload()
// Soft WS reconnect often keeps a workspace.follow subscription that was
// opened while anonymous (empty workspace list). Full reload makes the
// first follow run with fallback/UDS cookies so historical workspaces show.
try { window.location.reload() } catch { /* ignore */ }
}
function getAuthToken() {