Skip to content

Download updates automatically with a titlebar capsule - #4482

Merged
benjaminshafii merged 8 commits into
devfrom
feat/proactive-desktop-updates
Sep 5, 2026
Merged

benjaminshafii merged 8 commits into
devfrom
feat/proactive-desktop-updates

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

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:

  • App TypeScript check passed on f4bc310.
  • 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.
  • Native updater suite previously passed 28 with one platform-specific skip, zero failures; no native runtime code changed.
  • Passed: all 3 visual judgments passed with 0 pending. Final-commit evidence and screenshots published in the test-evidence comment.

@vercel

vercel Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 5, 2026 6:12am UTC
openwork-den Ignored Ignored Preview Sep 5, 2026 6:12am UTC
openwork-diagnostics Ignored Ignored Preview Sep 5, 2026 6:12am UTC
openwork-landing Ignored Ignored Preview Sep 5, 2026 6:12am UTC

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 5, 2026 05:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 5, 2026 05:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 5, 2026 05:15 Inactive
@benjaminshafii benjaminshafii changed the title Download desktop updates automatically with a quiet restart prompt Download updates automatically with a titlebar capsule Sep 5, 2026
@benjaminshafii
benjaminshafii marked this pull request as ready for review September 5, 2026 05:43
@benjaminshafii
benjaminshafii enabled auto-merge (squash) September 5, 2026 05:48
auto-merge was automatically disabled September 5, 2026 05:56

Pull request was closed

@benjaminshafii benjaminshafii reopened this Sep 5, 2026
@benjaminshafii
benjaminshafii enabled auto-merge (squash) September 5, 2026 05:56
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 5, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@benjaminshafii

Copy link
Copy Markdown
Member Author

Test evidence — updates-download-outside-settings-and-offer-a-persistent-optional-restart — ✅ passed

SHA e8e4714 · engine v1

✅ 2/2 screenshots passed · 3 expectations passed · 0 failed · 0 pending

[world] desktop(daytona) · workspace(/tmp/openwork-background-update-1788588837093)
[probe] eventually(initial background check finds no update) · eventually(return after the interval checks again while idle) · eventually(background download without opening Settings)
[user] notSee(text=Update ready) · see(text=Update ready) · notSee(text=Ready when you are.) · see(text=Update ready) ×2
[vision] looks(2 expectations)
[user] click(Update ready) · see(text=Ready when you are.) · see(text=Downloaded and ready to install)
[vision] looks(1 expectations)
[user] click(Later) · notSee(text=Ready when you are.) · see(text=Update ready) · click(Update ready) · click(Restart OpenWork) · see(text=Restart OpenWork?) · click(Keep working) · notSee(text=Restart OpenWork?)
[probe] eventually(custom logo is preserved instead of the default wordmark)
[user] click(Update ready) · see(text=Restart Studio) · notSee(text=Restart OpenWork) · click(Restart Studio) · see(text=Restart Studio?) · click(Restart & update)
[probe] eventually(restart only after confirmation)
verdict passed · 16 user observations (notSee ×5, see ×9, looks ×2) · 5 probes · steps 0/0

✅ PASS — 1. A small sage Update ready capsule is in the titlebar, and the OpenWork name is above the sidebar navigation

  • ✅ PASS A small sage Update ready capsule is in the titlebar, and the OpenWork name is above the sidebar navigation — The titlebar shows a small pale sage “Update ready” capsule, and “OpenWork” appears at the top-left above “New task” and the other sidebar items.
  • ✅ PASS No update banner covers or reduces the workspace — Only a compact “Update ready” titlebar capsule is visible; no update banner overlays or reduces the main workspace.

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

  • ✅ PASS 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 — The pop-up appears directly below the “Update ready” capsule and visibly includes “Ready when you are.”, a dark “Restart OpenWork” button, and a muted “Later” action.

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: evals/results/test-runs/2026-09-05T06-12-30-765Z-updates-download-outside-settings-and-offer-a-persistent-optional-restart/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4482 --test-run 2026-09-05T06-12-30-765Z-updates-download-outside-settings-and-offer-a-persistent-optional-restart

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@benjaminshafii
benjaminshafii merged commit 7abd68f into dev Sep 5, 2026
26 checks passed
yomgui added a commit that referenced this pull request Sep 10, 2026
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant