Expand description
Downloading and staging a newer release
(docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4, phase 3a).
Only what the update check found: the release file for this install
(update::install), from github.com/agentmuxai/agentmux/releases, which
must match the SHA-256 GitHub lists for it. Nothing here names a URL or a
file of its own, and nothing is installed: a Windows portable release is
unpacked into a new folder next to the running one, ready for the launcher
to start (phase 3b); a setup.exe install’s installer is kept, verified,
in this version’s updates/<version>/, for the launcher to run (phase 3d);
a Linux portable’s tarball is unpacked into AgentMux-<version> next to the
running folder, and an AppImage’s next version is put beside it, executable
(phase 3e). Progress and the result go out as the app:updatestatus event
(update::check).
The download is kept in updates/<version>/ in this version’s data folder
(AGENTMUX_DATA_HOME, channels/<ch>/versions/<v>/data) while it runs and
deleted once unpacked. Its file and the unpacking folder carry this
process’ id, so two AgentMux instances downloading the same release never
write over each other; whichever stages the folder first, the other uses.
On Windows srv decodes the release’s .7z itself (update::unpack,
refusing .., absolute and drive paths): Windows 10’s own tar.exe is
libarchive without LZMA, so it can’t read the release’s LZMA2 + BCJ2 archive
(docs/specs/SPEC_UPDATE_UNPACK_7Z_IN_RUST_2026_10_19.md). On Linux it is
the system’s tar (with xz for the .tar.xz).
Functions§
- start
- Start downloading the release the update check found (the user’s Download, through the host). Returns at once with the status; progress follows as events.