[Feature]: Durable sessions for local terminals (not just SSH)
Feature description
Durable sessions are currently SSH-only (docs). The doc explicitly says:
Local terminals: Always use standard sessions (durability not applicable)
But that's increasingly untrue in practice. With long-running local processes — Claude Code agentic sessions, Docker Compose builds, dev servers, ML training — losing the block on a Wave crash, app update, or accidental window close is a real cost. Tools like tmux, zellij, screen exist for exactly this reason on local shells.
As a user running multiple parallel Claude Code sessions locally (each easily 30+ min, with hooks/badges already on the tab), I want my local terminal blocks to survive Wave restarts and crashes — same shield-icon UX as SSH durable sessions, just backed by a local job manager instead of a remote one.
Implementation Suggestion
The remote architecture (Unix domain sockets + lightweight Go job manager surviving disconnects) maps cleanly to local. Strip the SSH transport layer and run the job manager as a child process under wavesrv (or a separate local launchd/systemd helper). The cleanup-orphans-on-reconnect logic from the remote case becomes "cleanup-orphans-on-Wave-startup."
term:durable: true could simply gain meaning for view:term blocks without a connection field.
Anything else?
Related context:
- v0.14.5 release notes mention Quake Mode, which is exactly the kind of feature where users alt-tab away expecting their local work to be preserved.
- Claude Code badge integration (docs) is great for surface-level signals, but those signals are useless if the underlying block dies.
- Zellij/tmux users currently set up their durability outside Wave; a native solution would be a major DX win.
Local durable sessions would be especially useful for Claude Code, but I would make the "durable block" state distinguish three cases:
- the UI block survived or was restored
- the local job/PTY is still the same live process
- a new process was started from saved metadata/history
For agentic sessions, those are very different user outcomes. A receipt like block_id, job-manager pid/process generation, cwd, command, last output cursor, and same_live_process / resumed_new_process / history_only would make the shield icon trustworthy.
That also creates a cleaner bridge to tmux/zellij users: external durability can still be represented as "Wave attached to the same live process" instead of "Wave recreated a terminal that looks similar".
Faryo's public walkthrough uses the same acceptance boundary in a narrower tmux-first product: phone/browser control is only successful when the same live terminal session consumes the input/handoff.
https://github.com/Snailflyer/faryo/releases/download/v1.0.7/faryo-public-redacted-same-session-handoff-walkthrough-20260528-0120.gif