GeezerVison is showing github.com — Review pane browser tabs are deleted when the session detaches (session switch, compaction) · Issue #64734 · anomalyco/opencode
Review pane browser tabs are deleted when the session detaches (session switch, compaction) #64734
Description
Description
Leaving a session empties the Review pane's browser tab strip, and the tabs never come back. Compaction does the same. The pages are still alive - browser.tabs.list keeps returning the same tab IDs - but the strip is empty and the desktop's saved tab row is gone.
Where it happens: the renderer detaches the pane's registration on a session switch, connection.ts sends client.close, and pane-machine.ts reads that as "the user closed the browser", removing the saved tabs and publishing an empty state. A fix is in #64742.
OpenCode version
2.3.2, dev at 73215c5
Steps to reproduce
- Open the Review pane in a session and open a few browser tabs.
- Switch to another session and back.
- The tab strip is empty and stays empty. Compacting instead of switching does the same.
Operating System
Windows 11
Terminal
Windows Terminal
Activity
opencodejr commented on Nov 18, 2026
Thanks for the detailed write-up and the code trace. I couldn't reproduce this here because it needs the desktop app and its Review-pane browser, and this sandbox can't run those.
In the code, closing the pane's attachment with client.closed does delete the saved restore row and publishes an empty state, as you describe. From reading the code alone, I couldn't confirm that a title-bar session switch or a compaction remount actually triggers that close. The browser plugin starts the detach when a session leaves the list of sessions owned by open shell tabs. So this needs a maintainer who can run the desktop app, and one will take a look. Your planned PR with tests in pane-machine.test.ts should help with that.
Metadata
Metadata
Development
No branches or pull requestsIssue actions