Repository navigation
fix(desktop): wait for native update readiness before restart - #4714
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (76232 ms), confidentiality-review (123973 ms), spec-provenance-review (114474 ms), desktop-den-sync-review (161244 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (863e07fe861b976a8ee9abcb56a429500aa0e715). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
863e07f to
e162b0c
Compare
|
Passed · 3/3 tests · 4/4 assertions · 2 images Commit |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (e162b0ca855fc0b020749d40b7b6225f3f8dd226). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Problem
On macOS, electron-updater emits its download event before Squirrel finishes preparing the update. A later native staging error only reaches the log, leaving OpenWork showing Ready to install. Confirming restart can then return success while waiting for a native event that will never arrive.
Download and installation failures also disappear from the titlebar without notifying someone working outside Settings.
Changes
Verification — Incomplete
Head:
863e07fe861b976a8ee9abcb56a429500aa0e715Base:
440504bb9010ea7be822f5f9144e2627c84d32d3Passed
node --test apps/desktop/electron/updater.test.mjs— exit 0; 33 passed, 0 failed, 1 existing platform-specific skip. Includes delayed native preparation, staging error, timeout, retry, old-feed events, and transient-check preservation.node apps/app/node_modules/typescript/bin/tsc -p apps/app/tsconfig.json --noEmit— exit 0.git diff --check— exit 0.Skipped / blocked
pnpm evals:e2e background-desktop-update— exit 1 before placement or test execution. pnpm attempted dependency installation and stopped withERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY. No journey evidence was produced.pnpm warden:check— exit 1 at the same dependency preflight. Expected:diff-security-review,confidentiality-review,spec-provenance-review, anddesktop-den-sync-review; actually reviewed: none. No findings or clearance were produced. Head and base were unchanged before/after the command.Remaining proof
Restore the worktree's pinned dependency installation, then run the two blocked commands above. The renderer journey uses a deterministic update bridge and does not prove Squirrel itself; a signed macOS packaged update must separately verify preparation, replacement, and relaunch. No installed application was restarted during this work.
Review notes
The native boundary uses electron-updater 6.8.3's runtime
nativeUpdaterproperty; it is not public in that package's TypeScript declaration. Missing native access fails closed. This fixes a source-confirmed failure sequence, not a log-confirmed diagnosis of a particular installation attempt. General shutdown hardening is intentionally out of scope.