mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-16 15:30:47 +08:00
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:
parent
3e5c1f846e
commit
e479fe0833
2 changed files with 19 additions and 9 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue