Windows desktop update exit 4 bug and fixes
Cluster 116375 · apps/desktop. Data as of
Nothing open on GitHub. Fix merged in #116868 on 20 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 3 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #116868. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #116868. That is separate from the fix event. - Still open
- Nothing open on GitHub.
A bug where the Windows desktop update process aborts with exit code 4 due to a race condition between the cmd.exe wrapper dying and the hand-off script claiming its marker. Two related fixes address holding the backend-start gate correctly across the hand-off process.
Open issues0
Open PRs0
Fixes on record
-
#116868 fix(desktop): Windows Update button no longer aborts with exit 4 after the hand-off (#116375, salvage #97299)
files:
apps/desktop/electron/main.ts,apps/desktop/electron/update-gate-cancellation.test.ts,apps/desktop/electron/update-gate.test.ts,apps/desktop/electron/update-gate.ts,contributors/emails/[redacted:email]
1 PR closed without merging
From the close comments: done elsewhere 1
-
#116662 fix(desktop): hold the backend-start gate across the Windows hand-off wrapper's dead marker · done elsewhere →
#110531
Closed issues · 1
- Closed#116375[Bug]: Windows desktop Update aborts with `exit 4` on v0.21.3 and current `main` — the update gate opens when the `cmd.exe` wrapper dies, before the hand-off script claims the marker
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.67: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- apps/desktop
- Merged PRs
- #116868
- Closed issues
- 1
- Attempts
- 1 PR closed without merging
- Fix link checked
- 20 Sep 2026