Skip to main content

Module update

Module update 

Source
Expand description

The in-app updater: the check for a newer release, its download and signature, and the install, unpack and restart.

Modules§

auto
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).
check
Whether a newer AgentMux release exists (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §3).
download
Downloading and staging a newer release (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4, phase 3a).
install
How this AgentMux was installed, and which release file upgrades it (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4.2).
restart
“Upgrade & restart”, srv’s half (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4.1, §8.2, phase 3b).
signature
Signed update checksums (docs/specs/SPEC_SIGNED_UPDATE_CHECKSUMS_2026_10_25.md §5, §7, §8). When a download starts, this fetches the release’s signed manifest (envelope, signature, manifest: a few KB), checks it against the key this build pins (agentmux_common::update_manifest) and compares it with the file about to be downloaded. Step 3, enforce: a release from the first signed one on is downloaded only when its manifest verifies and agrees; one that doesn’t verify, disagrees, lacks the file or isn’t signed is refused with the message the person reads (§7). A release made before signing existed (FIRST_SIGNED) still reads as unsigned and is downloaded as before, so nobody on an old release is stranded.
signed_source
A second source for the update check, for when GitHub’s API limits this computer or fails (#47813).
unpack
Unpacking the Windows portable release’s .7z in srv itself (docs/specs/SPEC_UPDATE_UNPACK_7Z_IN_RUST_2026_10_19.md).

Functions§

init
Get the updater ready and start its background check (check::init, auto::spawn). A headless server never checks by itself.