Stale tabs resurrect ended or renamed sessions on reconnect #4

Closed
opened 2026-10-07 20:04:26 -04:00 by jared · 0 comments
Owner

Source: engineering review, 2026-10-07.

Auto-reconnect (main.js scheduleReconnect) calls attach NAME, which runs new-session -A. If the session was ended or renamed meanwhile, a laptop waking up quietly starts a fresh Claude under the old name.

Fix: reconnects use attach --existing NAME, which fails unless tmux or the registry knows the name. The UI then shows "session ended / renamed" with a picker.

_Source: engineering review, 2026-10-07._ Auto-reconnect (`main.js` `scheduleReconnect`) calls `attach NAME`, which runs `new-session -A`. If the session was ended or renamed meanwhile, a laptop waking up quietly starts a fresh Claude under the old name. **Fix:** reconnects use `attach --existing NAME`, which fails unless tmux or the registry knows the name. The UI then shows "session ended / renamed" with a picker.
jared added this to the v0.5.0 hardening + header/phone milestone 2026-10-07 20:04:26 -04:00
jared added the bug label 2026-10-07 20:04:26 -04:00
jared closed this issue 2026-10-07 20:15:49 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/devdesk#4