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
A terminal another client opens under an id you closed stays hidden until a reload #29
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
Open a thread with two terminals in the drawer.
Close Terminal 2 with its close button and confirm.
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