Skip to content

Say why an update install failed instead of stalling for three minutes - #12224

Merged
nwparker merged 4 commits into
mainfrom
nwparker/bugbash-11906
Aug 4, 2026
Merged

nwparker merged 4 commits into
mainfrom
nwparker/bugbash-11906

Conversation

@nwparker

@nwparker nwparker commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A failed quitAndInstall() destroyed the only copy of the updater's own error text. handleQuitAndInstallFailure (src/main/updater.ts:959) received the Error but never used it — it sent a fixed sentence (getPreCommitInstallFailureMessage()) and recorded a breadcrumb with undefined data. On the reporter's .deb Linux host that discarded text is the only record of the failed pkexec elevation and of the exact dpkg -i '<pending path>' command needed to finish by hand, which is why nothing showed up under ~/.config/orca/logs/.

Three defects on one path, now fixed:

  1. The cause is kept. withInstallFailureCause (src/main/updater.ts:895) appends the updater's text — whitespace-collapsed and capped at 200 characters — to the generic copy, and the breadcrumb at src/main/updater.ts:969 now carries errorType. A Windows signature verdict is returned verbatim with no prefix, because src/renderer/src/components/UpdateCard.tsx:293-297 classifies the whole error card (title, summary, primary action) off status.message; prefixing it would put "Quit and reopen Orca, then try again" on top of a security-stop card.

  2. The install span stops lying. On Linux DebUpdater/RpmUpdater and Windows NsisUpdater, electron-updater re-dispatches the failure synchronously inside quitAndInstall(). Recovery ran, control returned, and the guard at src/main/updater.ts:781 did a bare return — a normal return out of withUpdaterSpan means exit Success, which is the 126 ms Success span in the report. It and the supervised-serve handoff branch (src/main/updater.ts:754) now call span.fail() first. ActiveSpan.fail() finalizes the span, and the later end() that withSpan issues is a documented no-op (contract at src/main/observability/tracer.ts:50-53, enforced by the pending.ended guard at src/main/observability/tracer.ts:204-207), so nothing throws and no recovery path re-runs.

  3. The remote client reads the failure instead of waiting it out. installRemoteServerUpdate (src/main/updater.ts:1200-1214) builds accepted: true and calls the un-awaited quitAndInstall() before returning, so the RPC result cannot carry the failure. The reconnect loop (src/renderer/src/runtime/remote-server-update-coordinator.ts:268-302) polled only getRuntimeStatus, so a server that stayed up on the old version and was already publishing {state:'error'} through updater.getStatus sat on "Restarting…" for the full three-minute budget and then blamed a generic reconnect timeout. The loop now also runs readRemoteServerInstallFailure (src/renderer/src/runtime/remote-server-install-failure-probe.ts), which reports only when both the live runtime id and the snapshot's runtime id still match the process we asked to install.

Note for the record: the report's "there is no timeout on that wait" is not accurate — DEFAULT_REMOTE_SERVER_UPDATE_TIMING.reconnectTimeoutMs is three minutes (src/renderer/src/runtime/remote-server-update-coordinator.ts:69). The symptom was a three-minute stall ending in a misleading message, not an infinite hang. That deadline is kept as the backstop; no second timer was added.

Two small pieces of housekeeping came along because the fix needed them: the repeated "has this version caught up" comparison (written out twice in the coordinator — once with a targetVersion !== null guard, once without, since that site's target is always a string) is now hasReachedAppVersion in src/shared/app-version.ts, and the remote-update dialog row that renders this text un-disclosed got break-words (src/renderer/src/components/settings/RemoteServerUpdateDialog.tsx:97), matching MobileEmulatorAvailabilityDetails.tsx:47.

Scope against #11906

The issue names two distinct defects. This PR fixes defect 2 only (observability / UX: the failure is detected and then swallowed, the span reports Success, nothing surfaces in the client, and the dialog blames a reconnect timeout).

Defect 1 is not fixed here. A .deb/.rpm remote server still cannot elevate and therefore still cannot self-update; there is no privileged helper and no up-front "this host cannot elevate" detection. What changes is that the user is now told why, with the dpkg -i <path> command electron-updater produced, instead of being left to guess. The issue should stay open for the elevation work.

Addresses #11906 (defect 2 — observability/UX). Does not close it.

ELI5

When Orca tried to install an update on this user's Linux machine, the install was blocked because it could not get administrator permission. The updater knew exactly what went wrong, but Orca threw that explanation away and showed a vague "couldn't restart" message instead. Worse, when the update was for a server the user connects to remotely, the app just showed "Restarting…" for three whole minutes before giving up and blaming the wrong thing — even though the server had been reporting the real reason the entire time. Now Orca keeps the explanation and shows it, and the remote case gives up in about a second with the actual reason. The user also gets the exact command they can run themselves to finish the install. Orca still cannot install the update for them on such a host — that part of the bug remains.

Fix proof

Before the fix, two throwaway repro files (updater.bug-11906.test.ts, remote-server-update-coordinator.bug-11906.test.ts) failed as follows. Those files are not part of this diff — they were renamed off the issue number and folded into permanent suites, so this block is historical evidence and cannot be re-run from this branch:

 FAIL  src/main/updater.bug-11906.test.ts > quitAndInstall failure on a .deb Linux host (#11906) > reports the underlying elevation failure rather than a generic restart message
AssertionError: expected 'Could not start the update installer.…' to contain 'pkexec'

Expected: "pkexec"
Received: "Could not start the update installer. Orca remains open."

 FAIL  src/renderer/src/runtime/remote-server-update-coordinator.bug-11906.test.ts > runRemoteServerUpdate — install failure reported by a still-running server > surfaces the server-reported install error instead of waiting out the reconnect window
AssertionError: expected 'The server did not reconnect on the u…' to be 'Could not restart to install the upda…' // Object.is equality

Expected: "Could not restart to install the update. Quit and reopen Orca, then try again."
Received: "The server did not reconnect on the updated version."


 Test Files  2 failed (2)
      Tests  2 failed (2)

After the fix — the permanent homes are src/main/updater.install-failure-cause.test.ts, plus new cases in remote-server-update-coordinator.test.ts, the new remote-server-install-failure-probe.test.ts, and UpdateCard.error-card.test.tsx:

$ npx vitest run --config config/vitest.config.ts \
    src/main/updater.install-failure-cause.test.ts \
    src/renderer/src/runtime/remote-server-update-coordinator.test.ts \
    src/renderer/src/runtime/remote-server-install-failure-probe.test.ts \
    src/renderer/src/components/UpdateCard.error-card.test.tsx

 RUN  v4.1.5

 Test Files  4 passed (4)
      Tests  39 passed (39)
   Duration  2.06s

Both new guards were re-verified by mutation on this branch, and both do catch their regression:

  • replacing the probe call with installFailure = null turns "repeats the install failure a still-running server is publishing" red (1 failed | 12 passed);
  • dropping the probed first-tick gate turns "ignores an updater error that predates the install request" red (1 failed | 12 passed).

No regressions

Main-process and shared suites — all 14 src/main/updater* suites, observability/tracer + observability/instrumentation, and the two shared suites (app-version, updater-windows-signature-check):

 RUN  v4.1.5

 Test Files  18 passed (18)
      Tests  264 passed (264)
   Duration  8.24s

All renderer suites that neighbour or import the changed files (src/renderer/src/runtime/, all of components/settings/, both UpdateCard suites, and the remote-server-updates store slice):

 RUN  v4.1.5

 Test Files  198 passed (198)
      Tests  1548 passed (1548)
   Duration  27.48s

CI gate for file size, since remote-server-update-coordinator.ts is not grandfathered and sits close to its 300-line budget (≈294 counted lines after skipBlankLines/skipComments):

> node config/scripts/check-max-lines-ratchet.mjs

max-lines ratchet OK — 352 grandfathered suppression(s), no new bypasses.

Two pre-existing assertions in src/main/updater.test.ts compared against the old fixed string and had to be updated. While doing so I found that one of them (recovers quit-for-update state on sync quitAndInstall error event without killing PTYs) hardcoded the non-macOS copy and therefore failed on macOS before this change — re-verified by running that single test against the PR's merge-base (8b311ae), where it fails with Could not restart to install the update. Quit and reopen Orca, then try again.. It now uses the same platform-aware constant the neighbouring Linux-recovery describe already used, so it passes on all three platforms.

Trade-offs

  • The error string is longer and now carries the updater's own text, including a package path. That is the point — it is what makes sudo dpkg -i <path> discoverable. The text is not raw: withInstallFailureCause runs it through redactLinuxPackageInstallText (src/main/linux-package-install-diagnostic.ts:88), the same sanitizer the retained-package recovery card uses, so ANSI escapes, control bytes, the home directory, the user name, and any tracked package path are replaced before the cause is capped at 200 characters. The durable crash breadcrumb still carries classification only (no message, no path), and the one place this renders without a disclosure got break-words. Regression test: updater.install-failure-cause.test.ts → "redacts the cause the same way the retained-package card does".
  • A Windows signature failure raised during install now loses the "Quit and reopen Orca, then try again" sentence. Deliberate: the specialized signature card's own guidance is the more actionable of the two, and showing both would be self-contradictory.
  • The reconnect tick stays inside its own budget. getUpdaterStatus now takes an optional timeoutMs, and waitForReplacementRuntime clamps both poll RPCs to min(10 s, time left before the reconnect deadline). The wait can therefore overshoot the three-minute deadline by at most one poll interval instead of ~25 s, and no second timer was added. In the broken case the loop still terminates in about a second instead of 180 s. Regression test: remote-server-restart-wait.test.ts → "never lets a poll RPC outlive the reconnect deadline".
  • A quitAndInstall that throws instead of dispatching used to lose its reason too. That gap is now closed: the catch branch of performQuitAndInstall (src/main/updater.ts:851) runs the same withInstallFailureCause once the native call was reached. Regression test: "carries the cause when quitAndInstall throws instead of dispatching an error event".
  • updater.install spans flip from Success to Failure on two abort paths. Only telemetry consumes span exits; nothing retries or alerts off them. This is a correction, but anyone eyeballing updater span success rates should expect the number to move.

Verification limits

  • Everything here was verified on macOS only — unit suites plus the merge-base re-run, all on darwin. The Linux .deb and Windows NSIS behaviours are reproduced through mocked electron-updater events and real error strings, not on a real .deb host or a real Windows box. The reporter's actual failure (pkexec elevation on Linux Mint 21.3) was not reproduced end-to-end.
  • No remote-server end-to-end run: fix (3) is exercised through the coordinator's transport seam with fake transports, not against a live SSH-paired server.

Cross-platform

No keyboard shortcut, accelerator, shortcut label, metaKey, path.join, shell invocation, or filesystem write is touched anywhere in this change.

  • Linux — the reported case, and where all three fixes are observable. DebUpdater/RpmUpdater dispatch the install error synchronously inside quitAndInstall(), so the cause is captured, the span exits Failure, and the copy stays "Could not start the update installer. Orca remains open. (…)" since a restart is not known to help there.
  • Windows — NsisUpdater also dispatches synchronously, so both (1) and (2) apply. The one Windows-specific hazard is that isWindowsSignatureCheckUnavailableFailure / isWindowsSignatureMismatchFailure are case-insensitive substring checks, so an embedded cause would change card routing. withInstallFailureCause handles this explicitly by returning a matching cause verbatim, and there is a dedicated test for it in both updater.install-failure-cause.test.ts and UpdateCard.error-card.test.tsx.
  • macOS — keeps its own copy ("Could not restart to install the update…", correct because quitting does re-stage a Squirrel update) and gets the improved message and breadcrumb from (1). It does not get the Failure span exit: Squirrel delivers the error asynchronously after the span has already ended, and span.fail() after end() is a documented no-op. Stating that plainly rather than implying the behavior is uniform. The existing macOS guards (isMacInstallerReady, markMacQuitAndInstallInFlight, updateInstallCommitted, deferMacQuitUntilInstallerReady) and the post-commit rule that late errors must not recover are untouched, and updater.mac-install.test.ts plus "does not recover quit-for-update state from late errors after install commit" stay green.
  • SSH / remote — fix (3) is the remote path and only exists for remote servers. Everything goes through the runtime RPC transport; nothing assumes local execution. RPC rejections while the server process is being replaced stay swallowed by the loop's existing catch {} (covered by "keeps waiting when the failure probe itself cannot be reached").
  • Folder workspaces (non-git) — not a factor. Nothing here touches git, worktrees, or workspace shape. No git subcommand or option is added, so the 2.25 baseline and GitCapabilityCache are not in play. No GitHub- or GitLab-specific naming or behavior is involved.

Performance

Negligible, and net-negative work on the broken path.

  • Reconnect loop: at most one extra updater.getStatus RPC per 500 ms tick, and only when the original runtime id is still reachable after at least one completed tick. Successful updates that replace the process within one tick issue zero extra calls (that is what the probed gate buys, on top of closing the false-positive window). An unreachable or already-replaced server issues zero extra calls. Calls are sequential awaits, so there is no request pile-up. In the failure case the loop terminates in about a second instead of 180 s, i.e. strictly less SSH traffic than today.
  • Main process: one whitespace-collapsing regex plus a 200-character slice, on a path that runs at most once per install attempt. The two span.fail() calls are no-ops when no tracer sink is installed.
  • Renders: unchanged. The coordinator still emits exactly one failed entry, so onProgress call counts are identical.
  • hasReachedAppVersion is the same comparison chain that was previously inlined twice — one extra function call on a cold path.

Security

  • IPC: no new channels, no new handlers, no signature changes. RemoteServerUpdateTransport already exposed getUpdaterStatus (remote-server-update-coordinator.ts:50, used by the existing remote-server-updater-polling.ts), so there is no new transport plumbing and no new remote-callable surface.
  • Command execution: none added. No spawn, exec, or shell invocation anywhere in this diff. The dpkg command that now appears in the message is text produced by electron-updater that is displayed to the user; Orca does not execute it.
  • Path handling: no paths are constructed or resolved. The pending package path can now appear in a user-visible error string — intentional and the core ask of the issue, and bounded to 200 characters. The durable crash breadcrumb deliberately still carries classification only (errorType), never the message, path, home directory, or stderr, matching the existing linux_package_install_failed breadcrumb policy. The redaction-based Linux recovery copy takes priority whenever a package artifact was retained, so the redacted path remains the norm.
  • Auth surface: no change. No credentials, tokens, or auth flows are read or written. The span exit cause passes through the existing redactString sink redactor like every other span.
  • Renderer: the message is rendered as a text node in a <p> — no dangerouslySetInnerHTML, no interpolation into markup or URLs. break-words is a layout-only utility.

AI Review Report

Reviewed by independent subagents in a loop until clean, across two hostile lenses — correctness/regressions and cross-platform + remote + performance.

  • Review loop count: 1 round(s)
  • Final verdict: CLEAN
  • The final round returned zero blocker/major findings from both lenses.

Follow-up pass: fewer trade-offs

A second review asked whether a design with fewer trade-offs exists. Three of the accepted trade-offs turned out to be artifacts of the first implementation rather than essential, and are now gone (see the updated Trade-offs list). All three of the non-blocking notes below are resolved by that pass:

  • notes 1 and 3 (raw text vs. the purpose-built sanitizer) — withInstallFailureCause now calls redactLinuxPackageInstallText, passing the tracked package path so the redaction is identical to the recovery card's;
  • note 2 (the catch branch discarding error) — the post-native catch branch now appends the cause the same way the event branch does.

The reconnect wait moved out of remote-server-update-coordinator.ts into src/renderer/src/runtime/remote-server-restart-wait.ts (waitForReplacementRuntime). That is a real seam — "wait for the replacement process, or report why it never came" — and it also takes the coordinator back from 305 counted lines (over its 300 budget once the clamp was added) to comfortably under it, without a ratchet bump.

Alternatives evaluated and rejected:

  • Structured error discriminant on UpdateStatus instead of message sniffing, to keep the "Quit and reopen Orca" sentence on a Windows signature verdict. It would remove that trade-off, but UpdateCard classifies HTTP/2, signature-unavailable, and signature-mismatch errors off status.message today; giving all three a discriminant means touching every sendErrorStatus call site in updater.ts and its 14 suites. Disproportionate for a path electron-updater does not actually reach — Windows signature verification runs during download, not during quitAndInstall.
  • Return the install failure in the updater.install RPC result instead of polling for it. The RPC must return before the process quits, and on Linux DebUpdater.doInstall runs spawnSync, so awaiting the outcome would hang the successful path until the client's 15 s RPC timeout. Strictly worse.
  • Blocking automatic remote updates for .deb/.rpm hosts up front (triage sketch item 4, the other half of the issue). .deb self-update works on hosts with a usable polkit agent; a blanket block regresses them, and a real "can this host elevate?" probe means spawning a privileged helper on a platform none of us can test here. Deliberately not attempted — see the issue note below.

Non-blocking notes (3), recorded for transparency:

  • src/main/updater.ts — withInstallFailureCause (updater.ts:895) puts the raw Error.message on currentStatus with no redaction, while the .deb/.rpm recovery path in buildLinuxPackageInstallFailureStatus (the redaction happens at updater.ts:941-944, in the function starting at updater.ts:915) runs the equivalent text through redactLinuxPackageInstallText under the explicit comment "this text is shown in the card, so it gets the same redaction as retained stderr." redactLinuxPackageInstallText is already imported in updater.ts, so routing the raw cause through it would be cheap.
  • src/main/updater.ts — Claim 1 of this PR ("the cause is kept") is applied only to the event-dispatch branch (handleQuitAndInstallFailure, updater.ts:959). The structurally similar catch branch of performQuitAndInstall (updater.ts:847-855) — the one that handles getAutoUpdater().quitAndInstall() throwing synchronously instead of re-dispatching through the error event — still discards error and sends the bare getPreCommitInstallFailureMessage() when buildLinuxPackageInstallFailureStatus returns null.
  • src/main/updater.ts — withInstallFailureCause (updater.ts:895) sanitizes raw electron-updater/child-process text with only raw.replace(/\s+/g, ' ').trim().slice(0, 200). The repo already has a purpose-built sanitizer for exactly this text — redactLinuxPackageInstallText in src/main/linux-package-install-diagnostic.ts, whose doc comment states the contract: "Turns arbitrary updater/child output into text safe to show locally: no ANSI, no control bytes, no home directory, no cached package path, bounded length."

Made with Orca 🐋

…r three minutes

A failed `quitAndInstall()` threw away the updater's own error text and replaced
it with a generic sentence. On a .deb Linux host the discarded text is the only
record of the failed pkexec elevation and the exact `dpkg -i <path>` command the
user needs, so nothing actionable reached the logs or the UI.

Three fixes on one path:

- `src/main/updater.ts:963` now appends the updater's cause (whitespace-collapsed,
  capped at 200 chars) to the install-failure status. A Windows signature verdict
  is passed through verbatim so `UpdateCard` still routes it to its own card
  instead of prefixing contradictory restart advice.
- `performQuitAndInstall` calls `span.fail()` on the two abort paths that
  previously returned bare, so the `updater.install` span stops reporting Success
  for an install that never ran.
- The remote-server reconnect loop now reads the failure the still-running server
  is already publishing through `updater.getStatus`, ending in about a second
  instead of burning the full three-minute reconnect budget and blaming a
  reconnect timeout. The probe is skipped on the first tick because the install
  RPC returns before the installer fires.

Also deduplicates the repeated "has this version caught up" comparison into
`hasReachedAppVersion`, and adds `break-words` to the remote-update dialog row
that renders the now-longer text un-disclosed.

Closes #11906

Co-authored-by: Orca <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The updater preserves installer causes in generic failure messages, records structured failure diagnostics, and marks failed installation spans as Failure. Windows signature-verification messages remain unchanged. Remote-server updates validate target versions through hasReachedAppVersion, probe matching installation failures during reconnection, and propagate detected errors. Tests cover updater, tracing, renderer cards, remote-server probing, and coordinator behavior. Long update help text now wraps.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: surfacing update-install failures instead of waiting through the remote reconnect timeout.
Description check ✅ Passed The description is detailed and covers the user-visible change, testing, security, platform behavior, risks, verification limits, and AI review findings.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker

nwparker commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nwparker

nwparker commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@greptileai review

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (1)
src/renderer/src/runtime/remote-server-update-coordinator.test.ts (1)

313-339: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a test for a genuine first-tick failure.

This test reaches the target version on tick 2, so readRemoteServerInstallFailure is never called. The test does not exercise the probed guard in runRemoteServerUpdate, which exists specifically to suppress an error seen on the very first tick after install().

Add a test where getRuntimeStatus keeps returning the old runtime/version on every tick, and getUpdaterStatus reports a matching-runtimeId error from tick 1 onward. Assert that the result is not failed until tick 2, to confirm tick 1 is genuinely skipped rather than accidentally passing.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8b85144d-1000-45ae-9fbc-0f1ab5c69fb9

📥 Commits

Reviewing files that changed from the base of the PR and between 8b311ae and c9a77c0.

📒 Files selected for processing (10)
  • src/main/updater.install-failure-cause.test.ts
  • src/main/updater.test.ts
  • src/main/updater.ts
  • src/renderer/src/components/UpdateCard.error-card.test.tsx
  • src/renderer/src/components/settings/RemoteServerUpdateDialog.tsx
  • src/renderer/src/runtime/remote-server-install-failure-probe.test.ts
  • src/renderer/src/runtime/remote-server-install-failure-probe.ts
  • src/renderer/src/runtime/remote-server-update-coordinator.test.ts
  • src/renderer/src/runtime/remote-server-update-coordinator.ts
  • src/shared/app-version.ts

…t wait inside its deadline

Removes three trade-offs the first pass accepted:
- the raw cause reached the update card unsanitized; it now goes through the
  same redactor the retained-package recovery card uses
- a quitAndInstall that throws instead of dispatching still lost its reason
- the reconnect poll could outlive its own three-minute budget by 25s

The reconnect wait moves to remote-server-restart-wait.ts, which also keeps
the coordinator under its 300-line budget.

Co-authored-by: Orca <[email protected]>

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8a51fbe7-303a-4fed-87ba-01bd3e30be54

📥 Commits

Reviewing files that changed from the base of the PR and between c9a77c0 and eac03ef.

📒 Files selected for processing (8)
  • src/main/updater.install-failure-cause.test.ts
  • src/main/updater.ts
  • src/renderer/src/runtime/remote-server-install-failure-probe.test.ts
  • src/renderer/src/runtime/remote-server-install-failure-probe.ts
  • src/renderer/src/runtime/remote-server-restart-wait.test.ts
  • src/renderer/src/runtime/remote-server-restart-wait.ts
  • src/renderer/src/runtime/remote-server-update-coordinator.ts
  • src/renderer/src/store/slices/remote-server-updates.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/renderer/src/runtime/remote-server-install-failure-probe.ts
  • src/renderer/src/runtime/remote-server-install-failure-probe.test.ts
  • src/main/updater.ts

nwparker and others added 2 commits August 4, 2026 00:07
…rt-wait awaits

The status RPC could spend the tick's whole budget and the install-failure probe
would then start a second full one, letting a tick run ~2x past the deadline.

Co-authored-by: Orca <[email protected]>
@nwparker
nwparker merged commit e1071f5 into main Aug 4, 2026
82 of 84 checks passed
@nwparker
nwparker deleted the nwparker/bugbash-11906 branch August 4, 2026 09:02
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
stablyai#12224)

Surfaces the real install-failure cause instead of letting a failed elevation stall silently, and keeps the reconnect wait inside its total budget by recomputing the remaining time after each awaited RPC.

Relates to stablyai#11906 — this fixes the observability half. The functional half (a .deb/.rpm host cannot elevate and can never self-update) is unchanged, so the issue stays open.
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