oficina / equipo Public

Replace an offline primary runner by adding a new machine Feature Request open

A person whose primary runner has gone offline for good cannot replace it by adding a new machine. The new machine is quietly enrolled as a worker, and the conversation keeps saying "Your runner is offline".

How it happened (production, 2026-11-20): the cutover kept the existing database, so the old runner's record stayed as the person's primary. The new runner enrolled as a worker (setup/enrolment.go: "a person's first runner is the primary; later ones are workers"). Nothing promotes a worker, so the only fix was to revoke both machines and enrol again.

Wanted:

  • When the person approves a new machine while their primary is offline, offer "Make this your main machine" (default when the primary has been offline for a while). Approving it revokes the old primary and enrols the new one as primary in one step.
  • On the Machines page, a worker can be made primary when the primary is offline or revoked.
  • The offline line in the conversation names the machine and links to the fix, e.g. "Your main machine (old-label) is offline. Make another machine your main one."
  • Tests: replace an offline primary at approval; promote a worker; both refuse while the primary is online unless the person confirms.

Security note: changing the primary moves who relays candidates and publishes, so it needs the owner's tap, never model text.