anomalyco / anomalyco/opencode

tui: saved tabs are shared between local and remote servers

Open
#47,998 0 comments 1 reaction 1 assignee View on GitHub

@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
  1. Open the managed local TUI and leave some session tabs open.
  2. Exit, then launch with --server <remote-url> using the same TUI storage channel. For current-directory scope, use the same launch directory.
  3. Observe that saved tabs are shared with the other server.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.