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(browser): website logins lost after closing and reopening tabs in 2.0.30 #55920
In OpenCode Desktop 2.0.30, website login state is lost after closing and reopening a tab in the built-in browser. After signing in to a website, closing its tab, and opening the same website again in the built-in browser, I have to sign in again.
Expected: reopening the website should retain its valid login session without requiring another sign-in.
OpenCode version
2.0.30 (Desktop)
Steps to reproduce
Open a website that requires authentication in the desktop app's built-in browser.
Sign in successfully.
Close the browser tab.
Open the same website again in the built-in browser.
The website requires signing in again.
Related issue
#50382 reports similar login-state loss after restarting the app and was closed during the V1 issue cleanup. This report is for 2.0.30, with closing and reopening the browser tab as the trigger. I have not verified the underlying cookie/storage cause.
Thanks for the detailed report. We couldn't reproduce this in our automated environment, because it can't run the Desktop app's built-in browser, so a maintainer with the desktop app will need to confirm it.
The code does point to a likely cause, though we haven't confirmed it by running the app. Each time the built-in browser pane is set up, it gets a new, temporary storage area, so cookies don't survive once the pane is closed and reopened. The same code is still on the latest dev (e25b7ab).
If you notice exactly when the login is lost (closing just one tab while others stay open, closing the last tab, or switching sessions), please add that here. It would help pin it down.
I’m using OpenCode Desktop 2.0.30. It happens when closing just one tab while other built-in browser tabs remain open: after signing in to a website, I close that tab and reopen the same website in a new tab, and it asks me to sign in again. This happens without restarting the app.
Activity
opencode-agent commentedon Oct 16, 2026
Thanks for the detailed report. We couldn't reproduce this in our automated environment, because it can't run the Desktop app's built-in browser, so a maintainer with the desktop app will need to confirm it.
The code does point to a likely cause, though we haven't confirmed it by running the app. Each time the built-in browser pane is set up, it gets a new, temporary storage area, so cookies don't survive once the pane is closed and reopened. The same code is still on the latest
dev(e25b7ab).Related:
If you notice exactly when the login is lost (closing just one tab while others stay open, closing the last tab, or switching sessions), please add that here. It would help pin it down.
LonelyFellas commentedon Oct 16, 2026
same issue
Wang-Ya-di commentedon Oct 16, 2026
I’m using OpenCode Desktop 2.0.30. It happens when closing just one tab while other built-in browser tabs remain open: after signing in to a website, I close that tab and reopen the same website in a new tab, and it asks me to sign in again. This happens without restarting the app.