cmux/Sources/Update
Austin Wang e203c51c7a
Show update-available banner automatically on launch (#1651)
* Show update-available banner automatically on launch

Probe for updates immediately on launch via Sparkle's
checkForUpdateInformation() so the sidebar surfaces a passive update
indicator without waiting for the 24h scheduler. When Sparkle detects
an available update in the background, the pill now shows
"Update Available: X.Y.Z" with accent styling while the updater is
idle. Clicking it triggers the full interactive update flow.

Also fixes thread safety in delegate callbacks by dispatching
@Published mutations to the main queue.

Closes #1643

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add periodic background update probe every 15 minutes

The launch-only probe wouldn't catch updates published while the app
is already running. Add a repeating 15-minute timer that calls
checkForUpdateInformation() so the sidebar banner appears within a
reasonable window after a new version is published.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Change background update probe interval to 30 minutes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Change update check interval to 1 hour and migrate existing users

Reduce Sparkle's scheduled check interval from 24h to 1h so update
banners appear sooner. Migrate users stuck on the old 24h default by
bumping the migration key to v2. Align background probe interval with
the Sparkle check interval instead of hardcoding 30 minutes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 12:30:44 -07:00
..
UpdateBadge.swift Show update-available banner automatically on launch (#1651) 2026-03-18 12:30:44 -07:00
UpdateController.swift Show update-available banner automatically on launch (#1651) 2026-03-18 12:30:44 -07:00
UpdateDelegate.swift Show update-available banner automatically on launch (#1651) 2026-03-18 12:30:44 -07:00
UpdateDriver.swift fix: restore Sparkle automatic update checks (#1597) 2026-03-17 03:07:38 -07:00
UpdateLogStore.swift Fix frozen terminals after split churn (#12) 2026-02-13 16:45:31 -08:00
UpdatePill.swift Show update-available banner automatically on launch (#1651) 2026-03-18 12:30:44 -07:00
UpdatePopoverView.swift feat: add Japanese localization with String Catalog (#819) 2026-03-04 14:58:28 -08:00
UpdateTestSupport.swift fix: show sidebar update banner from background checks (#1543) 2026-03-16 20:40:35 -07:00
UpdateTestURLProtocol.swift Release v1.23.0 (#31) 2026-02-09 15:30:43 -08:00
UpdateTiming.swift Improve update UI error details 2026-01-28 01:49:02 -08:00
UpdateTitlebarAccessory.swift Gate workspace chrome from minimal mode 2026-03-16 23:15:22 -07:00
UpdateViewModel.swift Show update-available banner automatically on launch (#1651) 2026-03-18 12:30:44 -07:00