Repository navigation
fix(desktop): show Sparkle update progress in chat-first UI (#11108) - #11142
Conversation
…dware#11108) The only progress surface lived in the legacy sidebar, which chat-first never renders. Surface Checking/Downloading/restart-ready state on the top bar and Settings → About, including when install waits for recording silence. Co-authored-by: Cursor <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…dHardware#11108) Clearing progress flags on abort/supersede left DeferredUpdateInstall scheduled, so a quiet-moment wait could still fire and re-stick "Update waiting…". Cancel and nil the waiter on every terminal transition. Co-authored-by: Cursor <[email protected]>
|
Addressed the stale Real gap (slightly worse than flag-only): clearing Fix: |
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the focused follow-up on the chat-first Sparkle status surface. The direction is good and the new shared status presentation/tests are useful, but I still see a couple of blockers on the current head before this should merge:
-
The new top-bar chip and reused sidebar banner still call
checkForUpdates()whencanCheckForUpdatesis true, but they do not also require!updateSessionInProgress.UpdaterViewModelalready exposescanManuallyCheckForUpdatesfor that combined guard, and Settings uses it for disabling the manual button. Please use that same manual-check guard for the chip/banner actions so tapping a visible in-progress status cannot start an overlapping Sparkle check. -
willInstallUpdatecurrently clearsupdateRestartImminentandupdateAvailableright after Sparkle enters the install path. That can make the chat-first chip and Settings status disappear at the exact moment the app is about to relaunch. Please keep the restart-imminent state visible through the install/relaunch handoff, and only clear it on a real terminal non-install outcome or after the relaunched app starts cleanly.
Also, the Settings button label now says “Checking…” for any active session, including the downloading/restart-ready states that the new card labels differently. That is lower risk than the two items above, but it should be aligned with the same status mapping so the controls do not contradict each other.
I did not run the macOS test suite locally in this Linux review environment; this is a static review against the current diff and the reported Desktop Swift CI results.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
…Hardware#11108) Use canManuallyCheckForUpdates on chip/banner taps, keep restart-imminent through willInstallUpdate, align Settings Check Now labels with status kind, and hide Checking… on automatic background polls. Co-authored-by: Cursor <[email protected]>
Addressed review @ab748ffe@Git-on-my-level Blockers fixed:
Also covered cubic’s background-poll note: cd desktop/macos
xcrun swift test --package-path Desktop --filter DesktopUpdateStatusPresentationTests
# 8 passed
xcrun swift test --package-path Desktop --filter UpdaterViewModelTests
# 3 passed |
|
@Git-on-my-level need human response — re-review request. Your CHANGES_REQUESTED still blocks merge, but head |
Resolved on current head ab748ff: manual update actions now use canManuallyCheckForUpdates, restart-imminent status is preserved through install/relaunch handoff, and Settings uses the shared status mapping.
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the quick follow-up here. I re-reviewed ab748ffe against the prior blocking feedback and the current diff.
The previous blockers look resolved on this head:
- The chat-first top-bar chip and reused sidebar banner now gate manual update checks through
canManuallyCheckForUpdates, so an in-progress Sparkle session cannot be re-triggered from those surfaces. - The install handoff now keeps
updateRestartImminent/ the version visible through the relaunch path instead of dropping the status just before termination. - Settings now uses the shared status mapping for the button label, so checking/downloading/restart/deferred states do not contradict the status card.
I also like the extra DeferredUpdateInstall.cancel() handling; that closes the stale quiet-moment waiter case where a canceled deferred install could later fire and resurrect the update state.
I’m dismissing my stale change-request review because those blockers are addressed. I’m still leaving this as a positive review signal rather than a formal approval so a human maintainer can sign off on the macOS update/relaunch UX before merge. CI is green, and I did not find a new code blocker in static review.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
Author-side clear for merge. @Git-on-my-level dismissed the CR on @kodjima33 — please APPROVE/merge when ready (chat-first Sparkle progress UI, #11108). Honest gap remains: no live Sparkle download exercised in this environment; unit coverage + Desktop Swift CI cover the status mapping/wiring. |
Keep DesktopUpdateStatusChip beside ShellStatusIcons (main replaced CaptureListeningControls). Sidebar keeps shared DesktopUpdateStatusBanner instead of main's private widget. Ratchet SidebarView to 1507. Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
@Git-on-my-level @kodjima33 merge conflicts with
David’s prior CR already dismissed on |
main deleted the OmiColors palette; chip/banner/Settings status now use Ink tokens so Desktop Swift builds after the merge. Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
Follow-up on
|
Pick up AgentPill/SettingsGlassChrome contract updates that landed on main after the prior conflict merge.
|
@Git-on-my-level @kodjima33 Desktop Swift CI red on Root cause: tip was behind
Merged current
Sparkle chip/banner still on |
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for the continued follow-up here. I re-reviewed the current head after the merge-conflict/theme updates.
The prior blockers still look resolved on this head:
- The top-bar chip and reused sidebar banner now use
canManuallyCheckForUpdates, so visible in-progress update states cannot start overlapping manual Sparkle checks. - Restart/deferred-install state is kept visible through the install/relaunch handoff, and the added
DeferredUpdateInstall.cancel()path prevents a canceled quiet-moment waiter from later firing and resurrecting stale status. - Settings, the top bar, and the sidebar now share the same status mapping and action labels, with tests covering the key checking/downloading/restart/deferred states plus drift guards for the shared surfaces.
- The later merge-conflict cleanup appears to preserve the intended Sparkle status surfaces while moving to the current
Inktheme tokens.
I do not see a new code blocker in static review, and CI for the desktop Swift paths is green. I’m still leaving this as a positive review signal rather than a formal approval because the macOS update/relaunch UX should get human maintainer sign-off before merge.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
Keep chat-first Sparkle update UI tip current for write-access review.
|
@kodjima33 write-access APPROVE / merge when ready — #11142 chat-first Sparkle progress UI (#11108). Author-clear:
Please APPROVE/merge when you have a moment for the macOS update/relaunch UX sign-off. |
What changed and why
Sparkle update progress was only rendered in
SidebarView.updateAvailableWidget, which chat-first never mounts (showsPrimarySidebaris false). Auto-updates could download and relaunch with no UI, and Settings → About only disabled "Check Now" with a tooltip. Fixes #11108 by binding existingUpdaterViewModelstate intoDesktopTopBarand the Software Updates card, plus restart/deferred-recording flags so silent install waits are visible.Product invariants affected
none
How it was verified
Could not exercise a live Sparkle download in this environment; status mapping and chat-first wiring are covered by unit + source-inspection tests.
Tests
DesktopUpdateStatusPresentationTests— status kind mapping + drift guard that top bar/Settings host the chip (sidebar no longer owns a private widget)UpdaterViewModelTestsstill greenFailure class (fixes)
Failure-Class: none
Scoped cleanups (optional)
Legacy sidebar now reuses
DesktopUpdateStatusBannerinstead of a duplicated private widget.