Skip to content

feat(updater): quit Orca from staged update recovery - #47770

Merged
orca-remote-automation[bot] merged 2 commits into
mainfrom
orca-remote-automation/update-recovery-quit-action
Nov 23, 2026
Merged

orca-remote-automation[bot] merged 2 commits into
mainfrom
orca-remote-automation/update-recovery-quit-action

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

When a macOS update is staged but automatic restart can't finish, the update card and Settings now offer a direct Quit Orca action. Previously they only told the user to restart manually.

  • Copy: "Update ready to install" / "Quit Orca. Reopen after installation."
  • Card: compact, right-aligned Later and Quit Orca (primary). Settings shows Quit Orca next to the recovery text, with no dismissal.
  • "Show details" appears only for a diagnostic: an uncoded host error or a failed restart request. Coded retry messages have no cause to show, so it is omitted for them.

Why

Staged macOS updates install when Orca quits normally. Asking users to find Quit themselves added a step at the moment recovery matters. Checked against how comparable products handle this.

How

  • New app:quit IPC. It calls quitFromUserCommand, the same ordinary quit the app menu and tray use. Unsaved-work prompts, close guards, and quit vetoes still apply and can cancel it. A cancelled quit resets quit state and leaves the recovery in place. In serve mode the existing behavior is kept: only the desktop windows close.
  • The handler accepts only the trusted main renderer (isTrustedUIRenderer) and only its main frame (senderFrame === sender.mainFrame). app-quit-request.test.ts covers this boundary and fails if either check is removed.
  • No changes to updater staging, eligibility (installOnQuit), the restart action where automatic restart works, or Windows/Linux recovery.

Tests

  • pnpm check:changed: 42 checks passed.
  • pnpm test src/main/ipc/renderer-requests/app-quit-request.test.ts: 1 passed.
  • Dev build in an isolated profile with an unsaved editor:
    • Card and Settings Quit Orca both raise the unsaved-changes prompt.
    • Cancel keeps the app open and the recovery available, and a later window close is not treated as a quit.
    • Later collapses the card while Settings keeps the action.
    • Don't Save quits and leaves the file unchanged.
  • Component fixtures in light and dark at narrow and wide widths, including the unchanged Windows retry, install-blocked, and restart-works states.

Performance

One IPC handler is registered once at startup, and each click makes a single invoke into the existing quit path. There is no polling, timer, subprocess, disk I/O, or new store subscription. Render cost is unchanged on surfaces that already re-render on update status.

Known limits

  • Not verified: a signed packaged install-and-reopen round trip, and the live updater preflight veto (checked by code reading).
  • Reopening right after quitting can still cancel the install. ShipIt aborts while Orca is running, and the existing leftover recovery re-stages the update later; no data is lost. Orca gets no install-finished signal, so the copy makes no timing promise.
  • When a team requires the update, the error card always stays visible. Later therefore doesn't hide it, the same as the previous "Keep Working" button.
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36
Prod 17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​92 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​62

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.

0 participants