docs: a scratch tmux command can't end the team, and how to bring seats back if one did #3832
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 432 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3832"
general
weight: 0.35
mvschwarz
What changed (text only)
A bare
tmux kill-serverrun from inside a seat ends every agent on that tmux server. These docs make three things explicit.Onboarding (
packages/daemon/assets/onboarding/02-self-and-competent-action.md, the seat's tmux paragraph):tmuxcommand in a pane follows its inheritedTMUX, whateverTMUX_TMPDIRsays. tmux setsTMUXin every pane, and OpenRig keeps it when it resets the pane's environment.-L <name>or-S <path>that isn't the live server's.docs/reference/tmux-servers.md:terminal.tmux_server: isolatedseparates seats from your own tmux server. It doesn't protect the seats' server from its own agents: a tmux command an agent runs there without-L/-S,kill-serverincluded, acts on the seats' server.kill-server):- Resume:
rig up <rig> --existingfinds the seats' sessions gone, starts the tmux server again, and resumes each seat's conversation where provider history allows. A seat without usable history waits for an explicit fresh-start choice.- Blank replacement:
rig seat launch <seat> --fresh --reason "<why>"can also reopen it, one seat at a time. That's a deliberate blank replacement, not a resume.No default, refusal or environment change.
Checked against source
-
routes/up.ts→existing-rig-restore.ts→restore-orchestrator.ts.-
hasSessiontreats "no server running" as gone (tmux.ts), so the seats read stale, not unknown.-
launchNode→createSessionstarts the server again (start-serverbeforenew-session), and tmux replaces a socket that refuses connections.- This was also exercised on real tmux 3.6a with a throwaway socket. After
kill-server,chooseRestoreSnapshot+runExistingRigRestorebrought the server back on the same socket, with the seat's own resume token.seat-lifecycle-service.tslaunchFresh(stale-socket check, thenstartServer()).--freshand--reasonare both required (seat.ts).-
check-docs-guard,generate-context-packs --check,mirror-skills --checkandcheck-first-run-referencespass.-
default-onboarding-packand the starter-adapter tests pass.- The onboarding file is 4,994 of its 5,000-character limit.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Clarified that registered sessions can keep startup selection pinned to the previous server, and changing the server setting does not move running seats.
Explained that unnamed
tmuxcommands use the pane’s inheritedTMUXvalue, regardless ofTMUX_TMPDIR; use a separate server name or socket path for experiments.Documented recovery with
rig up <rig> --existingand fresh launches withrig seat launch --fresh --reason; fresh launches are refused while the recorded process is running.* Warned that
tmux kill-serverends every agent on the targeted server.<!-- end of auto-generated comment: release notes by coderabbit.ai -->