Repository navigation
Download updates automatically with a titlebar capsule - #4482
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Pull request was closed
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (f4bc310f21c89217fcdf6a984c4e9f238cd1ba9a). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — updates-download-outside-settings-and-offer-a-persistent-optional-restart — ✅ passedSHA e8e4714 · engine v1 ✅ 2/2 screenshots passed · 3 expectations passed · 0 failed · 0 pending [world] desktop(daytona) · workspace(/tmp/openwork-background-update-1788588837093) ✅ PASS — 1. A small sage Update ready capsule is in the titlebar, and the OpenWork name is above the sidebar navigation
✅ PASS — 2. The update panel is aligned below the capsule with the heading Ready when you are., a dark Restart OpenWork button, and a quieter Later action
Test run created 2026-09-05T06:12:30.766Z · Source: |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (e8e4714e36ee2f44cdba7d7aa351fcd077acc310). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
* fix(desktop): keep the updater inert until enterprise activation Since #4482 the updater provider mounts above the enterprise activation gate, and #4606/#4696 made the contexts it needs available there. A fresh enterprise install therefore checked the enterprise release feed and started staging the newest release within ~2 s of first launch, before any Den (and so any allowed-versions policy) was known. Renderer: automatic and menu-requested checks wait until activation is complete and the desktop config has resolved once, so the first check already honours allowedDesktopVersions. Main process: openwork:updater:check/download/ installAndRestart reject through assertDesktopActivation while activation is required, so no renderer path can reach electron-updater early. Proof: unit test for the IPC guard, and the packaged-preactivation-updater journey (red on the unfixed enterprise build, green after) wired into the packaged smoke gate. * test(evals): count electron-updater's AppImage refusal as a check attempt On the unpacked Linux directory the packaged smoke gate boots, electron-updater answers checkForUpdates() with "APPIMAGE env is not defined" instead of "Checking for update", so the positive control never saw the attempt in CI.


Desktop users currently discover updates only when Settings mounts, and downloads default to off. Run one shared updater throughout the app, check every 15 minutes and on return after that interval, and automatically download releases allowed by the existing channel and organization policy.
Once a download is ready, a soft sage Update ready capsule appears in the titlebar. Clicking it opens the approved “Ready when you are.” panel with a restart action, Later, and install-on-quit guidance. The panel never opens automatically. Restart requires confirmation; dismissing either surface leaves the user’s work running. Settings and the workspace share the same updater state.
The sidebar shows the OpenWork mark and name by default. Organization logos retain their existing treatment, and configured app names are used in restart controls and confirmation.
Automatic downloads use a new default-on preference because old Settings persisted off even without user interaction. Subsequent opt-outs persist. Native install-on-quit behavior is retained.
Validation:
pnpm evals:e2e background-desktop-update: placement Daytona (CLI authenticated), 1 passed, 0 failed, 0 skipped on f4bc310. Verified titlebar placement, panel initially closed, Later, cancellation, Settings navigation, custom logo retention, branded restart labels, and installation only after confirmation.