BasicAgent

How to Resume a Terminal After Disconnect

Resuming a terminal after disconnect requires stable session identity and output replay, not just reconnecting a socket.

Published: 2026-01-04 · Last updated: 2026-01-04

Reconnecting a socket is not the same as resuming a terminal. Resume means you attach to the same session, see the missed output, and continue without restarting the job.

What a real resume requires

  • Stable session identity (same session, not a new one).
  • Output replay for the offline window.
  • State continuity across devices and time.

Why it matters

If you only reconnect the socket, you still lose context. A resume-first terminal avoids that failure mode.