mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-08 23:33:16 +08:00
Prefer soft reconnect after UDS login instead of full reload.
Workspace ACL no longer depends on a hard refresh; keep reload only as fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4a477f3513
commit
1053403d88
1 changed files with 9 additions and 3 deletions
|
|
@ -146,9 +146,15 @@ window.__ModuleLoader__.load({
|
|||
}
|
||||
|
||||
function reconnectAfterLogin() {
|
||||
// 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.
|
||||
// Prefer soft WS reconnect (re-upgrade with cookies). Full reload only
|
||||
// if connection.reconnect is unavailable — workspace ACL no longer needs
|
||||
// a hard refresh after login.
|
||||
try {
|
||||
if (typeof window.__udsAuthReconnect === 'function') {
|
||||
window.__udsAuthReconnect()
|
||||
return
|
||||
}
|
||||
} catch { /* fall through */ }
|
||||
try { window.location.reload() } catch { /* ignore */ }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue