Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
ADR 0318: Publish Native Linux arm64 Artifacts
- Status: Accepted (D638)
- Date: 2026-10-01
- Related: D126, D285, D375, D603, ADR 0022, ADR 0145, ADR 0284, ADR 0292, Issue #1281
Context
Tag releases publish Linux x64 only, and issue #1281 asks for arm64 because the
reporter runs the app inside a Linux container on an arm64 Android tablet where no
x64 artifact executes. Adding arm64 is a packaging change: the Rust host-core
sidecar and native voice modules are packaged from the runner's own build output,
the Linux targets pinned arch: ["x64"], and the AppImage artifact name carries no
architecture.
Decision
- The release matrix publishes two native Linux lanes,
ubuntu-22.04for x64 and GitHub'subuntu-22.04-armrunner for arm64, both verifyinguname -mand both keeping the documented glibc floor. - The static Linux targets stay AppImage, deb, and rpm without a pinned
arch, and the workflow passes the matching--x64or--arm64flag, as ADR 0145 set for macOS. build.linux.artifactNamebecomesPI-Desktop-${version}-linux-${arch}.${ext}, so each lane's AppImage carries its architecture.- Each Linux job verifies the updater feed it publishes —
latest-linux.ymlon x64 andlatest-linux-arm64.ymlon arm64 — so both lanes' artifacts merge without one feed overwriting the other. scripts/export-linux-asar.mjstakes the lane architecture, reads electron-builder's unpacked directory, and publishesPI-Desktop-<version>-linux-<arch>.asar.release.yml'spi-host-bundlejob builds both architectures, andPUBLISHED_TARGETSlistslinux-x64andlinux-arm64, so an arm64 desktop can bootstrap an arm64 remote host (ADR 0292).- Updater ownership, signing, and delivery mode do not change.
Consequences
- arm64 Linux users install native AppImage, deb, and rpm packages from every tag release, and the AppImage updates in place through its own feed.
- The x64 AppImage is renamed to
PI-Desktop-<version>-linux-x64.AppImage, so download links carrying the old name need updating. - Every tag release carries one arm64
pi-hostbundle and one extra arm64 ASAR asset, while microphone capture stays unavailable on arm64 devices other than Raspberry Pi boards.
Alternatives
- Cross-compile arm64 on the x64 runner — rejected: the sidecar and voice modules come from the runner's own build output.
- Pin both architectures on each Linux target — rejected: the arch list outranks the CLI flag, so each lane would build the other architecture around its own sidecar.