Skip to content

A terminal another client opens under an id you closed stays hidden until a reload #29

Open

Description

@viktorce

After you close a terminal, a new terminal that another client opens under the same id never shows up in your drawer. A reload shows it.

reused-id.mp4

Steps

  1. Open a thread with two terminals in the drawer.
  2. Close Terminal 2 with its close button and confirm.
  3. From another client, open a new terminal in the same thread. It gets the lowest free id, term-2.

Expected: Terminal 2 appears in your drawer.
Actual: it doesn't. After a reload it does.

Reproduced in the web app with the fix from pingdotgg#39260 applied (b7ba5aac22). The code involved predates that fix.

Cause

closeTerminal in apps/web/src/terminalUiStateStore.ts suppresses the closed id, so stale server listings can't bring it back while the close is in flight. reconcileTerminalIds filters suppressed ids out. The suppression clears only when this client places the id itself, so a later terminal from another client with that id stays filtered. Suppressions aren't saved, which is why a reload shows it.

Suggested fix

Clear an id's suppression once the server stops listing it, since any later listing is a new terminal.

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    readyReproduced in the app, with a recording
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.readyReproduced in the app, with a recordingseverity: lowMinor problemvalue: mediumWorth doing when nearby

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions