mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-08 23:33:16 +08:00
Reload after login so session history keeps WS identity.
Soft reconnect raced Set-Cookie and left session.page unauthenticated while prompt still worked. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1053403d88
commit
97dbfc4940
1 changed files with 3 additions and 9 deletions
|
|
@ -146,15 +146,9 @@ window.__ModuleLoader__.load({
|
|||
}
|
||||
|
||||
function reconnectAfterLogin() {
|
||||
// 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 */ }
|
||||
// Login Set-Cookie must land before WS upgrade. Soft reconnect races it:
|
||||
// session.page then throws "登录后才能访问会话" (no ALS identity) while
|
||||
// prompt still works — empty chat bubbles until a manual refresh.
|
||||
try { window.location.reload() } catch { /* ignore */ }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue