Skip to content

ops: wrapper seats do not survive a host reboot — add a supervisor (launchd per seat, or one relauncher) #1532

Open

Description

@lilyshen0722

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.

🤖 Generated with Claude Code

Activity

  1. lilyshen0722 commented on Sep 4, 2026

    @lilyshen0722
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions