anomalyco / anomalyco/opencode
tui: saved tabs are shared between local and remote servers
Open
@simonklee is already working on this.
Since Sep 8, 2026.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The V2 TUI shares saved session tabs between the managed local server and explicit remote servers. Opening another server can restore the previous server's tabs, and changing that layout can affect the tabs restored when returning.
Each server should restore its own tabs in both global and current-directory scopes. Selected terminal panes should also stay separate, even when servers have identical session or terminal IDs.
Steps to reproduce
- Open the managed local TUI and leave some session tabs open.
- Exit, then launch with
--server <remote-url>using the same TUI storage channel. For current-directory scope, use the same launch directory. - Observe that saved tabs are shared with the other server.
- Change the remote layout, exit, and return locally. The local layout should remain independent.
Related references
- #37667: switching servers.
- #45346: opening remote sessions as tabs.
- #18302: an analogous persisted-state bug in the desktop app; this report concerns the TUI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.