Repository navigation
fix(updater): keep status current after reopening the window - #34104
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f9e7beb3-0181-4b24-ad38-9b9539fddf2a
Files selected for processing: 37-
src/main/local-builds/local-build-switch.test.tssrc/main/local-builds/local-build-switch.tssrc/main/startup/main-process-runtime-launch-activation.test.tssrc/main/startup/main-process-runtime-launch.tssrc/main/startup/main-window-core-services.test.tssrc/main/startup/main-window-core-services.tssrc/main/updater-linux-package-recovery-actions.test.tssrc/main/updater-sqlite-profile-downgrade.test.tssrc/main/updater-test-main-window.tssrc/main/updater.build-channel-selection.test.tssrc/main/updater.check-failure.test.tssrc/main/updater.check-preflight.test.tssrc/main/updater.check-settlement.test.tssrc/main/updater.feed-attempt-lifetime.test.tssrc/main/updater.headless-serve-install.test.tssrc/main/updater.install-failure-cause.test.tssrc/main/updater.linux-externally-managed.test.tssrc/main/updater.linux-root-package-install.test.tssrc/main/updater.mac-install.test.tssrc/main/updater.nudge-campaign.test.tssrc/main/updater.prerelease-fallback.test.tssrc/main/updater.publishing-window-feed.test.tssrc/main/updater.quit-and-install.test.tssrc/main/updater.startup-scheduling.test.tssrc/main/updater.tssrc/main/updater/updater-build-selection.tssrc/main/updater/updater-install-execution.tssrc/main/updater/updater-mac-install-preflight.tssrc/main/updater/updater-nudge.tssrc/main/updater/updater-setup.tssrc/main/updater/updater-state.tssrc/main/updater/updater-status.tssrc/main/window/attach-main-window-services.test.tssrc/main/window/attach-main-window-services.tssrc/main/window/main-window-updater-deferred-setup.test.tssrc/main/window/main-window-updater-headless-serve.test.tssrc/main/window/main-window-updater.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9c4ef6ac-d6ed-438f-ad0d-e9eb63952a4a
Files selected for processing: 15-
src/main/local-builds/local-build-switch.test.tssrc/main/updater.build-channel-selection.test.tssrc/main/updater.check-failure.test.tssrc/main/updater.check-preflight.test.tssrc/main/updater.check-settlement.test.tssrc/main/updater.headless-serve-install.test.tssrc/main/updater.install-failure-cause.test.tssrc/main/updater.mac-install.test.tssrc/main/updater.nudge-campaign.test.tssrc/main/updater.prerelease-fallback.test.tssrc/main/updater.publishing-window-feed.test.tssrc/main/updater.quit-and-install.test.tssrc/main/updater.startup-scheduling.test.tssrc/main/window/attach-main-window-services.test.tssrc/renderer/src/components/status-bar/UpdateStatusSegment.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
|
After closing and reopening Orca’s main window, update status could remain stale. A native renderer send that throws could also interrupt a queued update check. This follow-up builds on #11567: notifications resolve the current main window, send failures stay contained, and each Local Build dialog refreshes its parent. Main’s proxy-session fix remains intact. tracked in STA-3003. The approved short review passed on QA’d head The remaining diff is 34 production changed lines across five files and 198 test/support changed lines across three files. Six surviving named suites passed through The packaged QA and screenshots below remain pinned to Targeted packaged macOS QA passed on the PR and packaged main. Through the rendered build picker, a real check was held pending, the original window closed, and a new window subscribed before the network response was released. Its rendered status then updated without reload, another check, or a second status pull. An ordinary Stable check subsequently completed with Check enabled. The PR package was The valid runs delivered after successor setup. The narrower event-before-deferred-setup race and throwing-send queued continuation are proved by production regression tests. Local Build reparenting, cancellation and candidate cleanup are tests-only. Payload download, staging and installation were not exercised in this targeted run; installation behavior is outside this follow-up. Two earlier Stable checks failed while the transport hold blocked discovery; those setup attempts are excluded from the pass evidence. An independent evidence audit verified the accepted chronology, package hashes and cleanup and requested no further run. No new source fix or product behavior was deferred. For Brennan’s review Whole-window captures of the same targeted scenario:
Three review spots: delivery boundary, lifecycle-owned destination, fresh confirmation parent. |
[Medium impact] No code defect was found that blocks merging, but the author’s stated hold remains. SummaryThe updater now finds the current main window for each notification instead of retaining a window reference.
No actionable defect was found in the reviewed diff. Tests were inspected, not run. Acknowledgment:
|
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.
Upstream changed providers' getDiff arity (stablyai#34779), UpdaterState (stablyai#34104), DiffSectionBody props (stablyai#36577, stablyai#35004), combined diff list props (stablyai#36921), the native chat setting (stablyai#36110), recovery launches waiting for the prompt (stablyai#36210), conflict-resolution props (stablyai#35347) and row-opening params (stablyai#36301). The saved-event case for a write whose views all closed is dropped: upstream no longer notifies then (stablyai#31617), as decided for this rebase.






After the main window closes and reopens, update status can go stale. A renderer send that throws can also stop the continuation of a queued update check.
This builds on #11567: resolve the current main window for each notification, contain send failures, and refresh the Local Build dialog parent before each dialog. It keeps the existing closed-window guards and main’s proxy-session initialization fix. tracked in STA-3003.
Plan and review: retain the existing helper and derive its destination from the lifecycle owner. The follow-up changes 34 production lines across five files. Brennan explicitly selected the short review path for this cut (10-28, ask 9B); lifecycle/IPC and recent same-symptom history would otherwise require the full path. One fresh adversarial review passed without source findings.
Main sync (10-30): merged
cc69f3dda2bf413d012560113170a941068fa043in26ed2e8a52cfd594b60da80565d6e94f2d748edb. The bounded integration review passed. Main’s removed headless forwarding suite stays deleted because the PR had only adjusted its mock wiring; its two baseline cases supplied no unique fix-specific regression. Main’s localized updater failures, native plurals and proxy-session fix remain intact. The prior packaged evidence carries on QA’d head2ebcd278da82ceaa17f5e831920a16f42ed1106f; review and CI established no broken runtime flow and no QA rerun was requested.Validation: six surviving named suites passed through
tc-gateafter the main merge (90 tests), including production queued-check settlement after a throwing send, successor delivery before deferred setup, and Local Build dialog reparenting/cancellation/cleanup. CI on merged head26ed2e8a52cfd594b60da80565d6e94f2d748edbhas 24 successful and 19 skipped checks; a failed-jobs-only retry passed after one temp-directory cleanup failure in unchanged main test code.Packaged macOS QA used signed build
v1.4.244-adhoc.20261029024324, workflow 40807970991, from head2ebcd278da82ceaa17f5e831920a16f42ed1106f. With a real check pending, the original window closed, a successor opened, and the released network result updated that successor without reload, a new check, or a second status pull. An ordinary Stable check then completed with Check enabled. The same targeted scenario passed on packaged main04f5104e1542da369b5319b86aa63f7607ced45c.The real run delivered after successor setup; the narrower event-before-setup ordering is proved by the production regression test. This follow-up does not change installation behavior; payload download, staging and installation were not exercised in this targeted run. Historical main checks are retained for unchanged flows.
Whole-window PR/main evidence and the completed review are in the review status comment. The independent evidence audit passed the targeted run; two earlier checks under the transport hold remain excluded setup attempts.