Skip to content

Terminals: only replace one whose process is gone - #287

Merged
robdmac merged 1 commit into
mainfrom
terminal-liveness
Nov 26, 2026
Merged

robdmac merged 1 commit into
mainfrom
terminal-liveness

Conversation

@robdmac

@robdmac robdmac commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

The dashboard page replaced a terminal when its WebSocket gave up (10 failed
reconnects) or a reconnect showed no output for 8s. A backgrounded tab (Safari
suspends its sockets and timers) trips both while the terminal is fine, and
replacing it kills what was running: on 2026-11-24 a PokerBench game's engine
terminal was restarted four times and three agent terminals once each.

The page now asks GET /sessions/:id/alive first (the sandbox lists a PTY only
while its process runs): running = reconnect, gone = replace, can't tell = leave
it alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EF7XuZVEB54qaWm21gcWCa
@robdmac
robdmac merged commit b4eb2d0 into main Nov 26, 2026
1 check passed
@robdmac
robdmac deleted the terminal-liveness branch November 26, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant