Expand description
A4: the TUI over SocketTransport (synaps --attach).
synaps --attach [ID] [--observe|--takeover] [--keep-warm] [--no-confirm-answers] — the TUI
over SocketTransport (PLAN-phase3 A4). Client diet: no EngineHost,
no Runtime, no ExtensionManager, no MCP, no skills index — config,
builtin commands, keybinds, the render thread and the event stream only.
Plugin commands / interactive plugin commands are not available over the
socket yet (Query{Commands} is phase 4).
Structs§
- Attach
Opts - What to attach to.
- Live
Session - The slice of
Welcome.sessionsthe attach decision needs.
Functions§
- adopt_
banner - One-line inventory of the daemon’s other sessions, shown when a plain
synapsadopts the daemon (F1): the lid-close user must be able to see their parked task, without being surprise-attached to it.Nonewhen nothing else is there. Rows read like/sessionsrows (same label, same state clock —state_since, notcreated_at— and~paths), and the line points there. - attach_
mode SYNAPS_ATTACH_MODE=mirror|observe|takeoverdefault, overridden by flags.- choose_
attach - What to send:
Existingfor an explicit or sole live session,Createfor--new,--continue, or no live sessions. Errors are user-facing.noticeis a one-line stderr message when a live session was picked implicitly (no id given). - daemon_
not_ running_ message - What
--attachprints when there is no daemon to attach to: says so, and how to start one (profile-aware). TheSYNAPS_DAEMON_AUTOSPAWNhint only appears when autospawn really is off; otherwise the daemon was there a moment ago (idle shutdown, crash) and re-running starts a new one. - run_
attached