fix(updater): recover interrupted swaps reliably across deployments

- Ship one POSIX launcher that repairs an interrupted code swap before Node
  starts, install it atomically before the swap, and keep it out of
  CODE_ENTRIES so it always survives at the install root.
- Restore from the in-progress task backup (state.json task.id ->
  backups/<id>) first, then the newest complete backup, so a leftover older
  backup never resurrects an obsolete build.
- Add exact-window SIGKILL recovery tests, including the stale-backup case.
- Gate Linux arm64 apply behind a capability check; add five-language copy
  and i18n labels for arm64, lock and unavailable errors.
- Harden the L2 runner handshake and recheck runner health before exit.
This commit is contained in:
OddTurtleHead committed 2026-11-24 03:13:32 +08:00
1 parent 699e606da5
commit 82b58dbd61
16 files changed
+699 -24

No files matched your search

@@ -352,6 +352,7 @@ function blockedReasonText(code: string | null) {
case 'PLATFORM_UNSUPPORTED': return tr('updateBlockedPlatform');
case 'ARCH_UNSUPPORTED': return tr('updateBlockedArch');
case 'WINDOWS_APPLY_UNVERIFIED': return tr('updateBlockedWindows');
case 'LINUX_ARM64_APPLY_UNVERIFIED': return tr('updateBlockedArm64');
case 'UPDATE_ASSET_UNAVAILABLE': return tr('updateAssetMissing');
case 'UPDATE_CHECKSUM_MISSING': return tr('updateChecksumMissing');
default: return tr('updateBlockedUnavailable');