Runs command in the agentβs container and collects both streams, capped
at MAX_OUTPUT + 1 bytes each. Returns the exec id (for the exit code) and
the two buffers.
shellstatus β query a shellβs current running state. Used by
useShellNodeStream to resolve the TRUE status of a shell whose
shell_node_create event is being replayed on pane mount/reconnect
(persist:64 ring), instead of assuming βrunningβ β the frontend canβt
otherwise tell a live spawn apart from a replay of an already-long-
exited shell, which was flashing stale rows in the Activity Dock.
See docs/retro/retro-activity-dock-stale-shell-flash-on-load-2026-08-22.md.
shellstop β tree-kill a running persistent shell node (Phase 3). Invoked
by the UI stop button on a running PersistentShellBlock. The runner then
publishes a stopped exit event.