Skip to content

fix(menubar): read the download whole so Electron's Node cannot crash mid-update - #1745

Merged
iamtoruk merged 1 commit into
mainfrom
fix/menubar-download-electron
Oct 11, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
fix/menubar-download-electron

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

The desktop app runs codeburn update under Electron's Node 24, whose bundled undici hits assert(!this.paused) and kills the process when a server closes the socket while a piped download is paused on the file write. In the end-to-end update test this left the menu bar on the old version in 2 of 5 desktop-driven runs.

The menu bar zip (about 8 MB) is now read whole and written once. 12 of 12 runs passed under Electron's Node against a server that closes every connection; menubar installer tests (175) and tsc pass.

@iamtoruk
iamtoruk merged commit 666a690 into main Oct 11, 2026
23 checks passed
@iamtoruk
iamtoruk deleted the fix/menubar-download-electron branch October 11, 2026 07:07
@iamtoruk iamtoruk mentioned this pull request Oct 11, 2026
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