You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ops: wrapper seats do not survive a host reboot — add a supervisor (launchd per seat, or one relauncher) #1532
Two host reboots on 2026-09-03/04 took every local wrapper seat down silently both times. Seats are plain nohup node commonly agent run <seat> processes: no launchd plist, no supervisor, no auto-relaunch. The board then shows rows as claimed with nothing behind them, which reads like a stuck seat and costs a diagnosis each time.
What exists today: a manual, idempotent relaunch script in the operator's home bin (relaunches the kept seat list, staggers starts, logs a marker line into each seat log). It worked both times, but only after a human noticed.
Ask: one of
a launchd agent per seat (KeepAlive, RunAtLoad), generated from the seat list, or
a single supervisor launchd agent that runs the relaunch script at login and on an interval, skipping seats that are already running.
Either way, the seat list must live in one place the CLI can read, not in a script. Acceptance: reboot the host, wait 60s, every kept seat is polling again with a [revive] line in its log, and no human touched anything.
Related: docs/runbooks/diagnosing-a-silent-seat.md does not mention the reboot case yet; add it in the same PR.
Installed on the commander host 2026-09-04 07:40Z, the one-relauncher option:
~/.commonly/bin/fleet-supervisor.sh reads the kept-seat list from revive-fleet.sh, exits silently when every seat is running, otherwise logs the missing seats and runs the reviver (idempotent, skips live seats).
~/Library/LaunchAgents/me.commonly.fleet-supervisor.plist runs it at login (RunAtLoad) and every 600s (StartInterval). Log: ~/.commonly/logs/fleet-supervisor.log.
Pause switch: touch ~/.commonly/fleet.paused stops all relaunching; remove the file to resume. Seats deliberately retired must come off the SEATS= list, not just be killed, or the supervisor brings them back within 10 minutes.
Verified: first launchd run exited 0 with all 15 seats alive and spawned no duplicates. Left open until the next real reboot proves the login path.
Activity
lilyshen0722 commentedon Sep 4, 2026
Installed on the commander host 2026-09-04 07:40Z, the one-relauncher option:
~/.commonly/bin/fleet-supervisor.shreads the kept-seat list fromrevive-fleet.sh, exits silently when every seat is running, otherwise logs the missing seats and runs the reviver (idempotent, skips live seats).~/Library/LaunchAgents/me.commonly.fleet-supervisor.plistruns it at login (RunAtLoad) and every 600s (StartInterval). Log:~/.commonly/logs/fleet-supervisor.log.touch ~/.commonly/fleet.pausedstops all relaunching; remove the file to resume. Seats deliberately retired must come off theSEATS=list, not just be killed, or the supervisor brings them back within 10 minutes.Verified: first launchd run exited 0 with all 15 seats alive and spawned no duplicates. Left open until the next real reboot proves the login path.