You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desktop: in-app browser option for shared/persistent profile (cookies lost across sessions and restarts) #63372
The desktop in-app browser gives each browser pane a random, non-persistent Electron partition (opencode-browser-${crypto.randomUUID()}). Cookies and logins are therefore not shared across sessions and are lost on app restart, so users must re-authenticate to the same sites (SSO, Salesforce, GitHub, etc.) repeatedly. Request: an option for a shared and/or persistent browser profile.
Without the persist: prefix the partition is in-memory, and the random UUID isolates every pane. Tab URLs are restored (opencode.browser.dat), but session state is not.
Additional Context
Consistently reproducible.
Workarounds: keep all authenticated browsing in a single session; use one-time login URLs (e.g. sf org open --url-only); use an external browser automation tool with a persistent profile.
Security note: a persistent shared profile should remain opt-in, since agents can drive these tabs.
Thanks for the clear write-up and for tracking down the exact cause.
I think this is a duplicate of #60313. The current code still gives each browser pane its own random partition with no persist: prefix, so cookies only live in memory. That's why logins don't carry over between sessions or survive a restart.
Possible duplicates and related issues, ordered by likelihood:
I'm closing this issue now as a duplicate of #60313. Please add your details there, especially your points about making it opt-in and the security concern about agents driving logged-in tabs, since they're useful for the design in #63002. If you think this is a different problem, reply here and the issue will be reopened.
Activity
opencodejr commentedon Nov 11, 2026
Thanks for the clear write-up and for tracking down the exact cause.
I think this is a duplicate of #60313. The current code still gives each browser pane its own random partition with no
persist:prefix, so cookies only live in memory. That's why logins don't carry over between sessions or survive a restart.Possible duplicates and related issues, ordered by likelihood:
I'm closing this issue now as a duplicate of #60313. Please add your details there, especially your points about making it opt-in and the security concern about agents driving logged-in tabs, since they're useful for the design in #63002. If you think this is a different problem, reply here and the issue will be reopened.