Expand description
The background update: check for a newer release on a timer, and download,
verify and stage it, with no click
(docs/specs/SPEC_BACKGROUND_UPDATES_ONE_CLICK_RESTART_2026_11_03.md §4.1, §4.2).
It only calls what a click calls: check::check_now and
download::start, so what is checked, downloaded, signed and staged is
the same either way. Nothing is installed here: a staged release waits for
the user’s restart (the status bar’s Restart to update, the tray, or
the version panel).
The first check is a minute after start (never during startup), then every
six hours give or take a fifth, so a fleet doesn’t ask GitHub together. A
failed check backs off: 15 minutes, doubling, at most a day, and the next
good one is back to six hours. update:auto off asks GitHub nothing;
update:autodownload off checks but leaves the download to the click. A
task dev build (it runs from source), a headless srv, a test harness
(AGENTMUX_DISABLE_CLOUD_SUBSCRIBER) and AGENTMUX_NO_AUTO_UPDATE never
check by themselves.
Functions§
- spawn
- Start the timer. Call once, after
check::init.