Skip to content

chore(desktop): upgrade Electron 35 → 43 (Chromium 150, Node 24) - #3478

Merged
benjaminshafii merged 1 commit into
devfrom
chore/electron-43
Aug 4, 2026
Merged

chore(desktop): upgrade Electron 35 → 43 (Chromium 150, Node 24)#3478
benjaminshafii merged 1 commit into
devfrom
chore/electron-43

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Electron only. No passkeys, no entitlements, no configureWebAuthn.

Why

Electron supports only the latest three stable majors (currently 43, 42, 41). Electron 35's last release was 2025-08-19, so we've been shipping an EOL Chromium 134 with ~11 months of unpatched CVEs — in an app whose job is browsing arbitrary pages in-process.

Went to 43, not 41: 44.0.0-alpha.9 already exists, so 41 would have aged out of support almost immediately. 43 gives a full runway.

before after
Electron 35.7.5 43.2.0
Chromium 134 150
Node 22.16.0 24.18.0
Native ABI 141 148

Deliberately excluded

The previous Electron 41 attempt (#3459) bricked the app and was reverted: it added the restricted keychain-access-groups entitlement for Touch ID with no provisioning profile, so macOS AMFI SIGKILL'd the signed app at exec (exit 137, before any JS) while every check went green. This PR adds no entitlement, no webauthn.mjs, no configureWebAuthn, and no signing metadata. Verified absent by grep over the diff. Touch ID can come later, gated on a real provisioning profile.

Changes (5 files)

  • Electron ^35.0.0^43.2.0 (caret kept, matching prior convention, so 43.x security patches are picked up)
  • @electron/rebuild + a rebuild:electron-native script; npmRebuild at packaging time — better-sqlite3 needs rebuilding for ABI 148, node-pty ships matching prebuilds
  • config assertion for the rebuild setting

⚠️ macOS 11 (Big Sur) is dropped

Verified from the actual bundles: LSMinimumSystemVersion goes 11.0 → 12.0. Anyone on Big Sur will no longer be able to run OpenWork. Please confirm that's acceptable before merging.

Verification

Check Result
pnpm install exit 0
pnpm typecheck exit 0
pnpm --filter @openwork/desktop typecheck:electron exit 0
pnpm --filter @openwork/desktop test 174 pass / 0 fail / 1 platform skip
check:electron exit 0, 52 bridge methods
Boot (dev + packaged) renderer readyState: complete over CDP
Packaged launch gate PASS — survived 10s

Runtime confirmed: Electron 43.2.0, Chromium 150.0.7871.129, Node 24.18.0, ABI 148, N-API 10.

Native modules in-Electron and packaged: SQLite returned {electron_major: 43}; PTY printed electron-pty-ok, exit 0. Packaged .node binaries are arm64 Mach-O including darwin-arm64-148.

The launch gate is the check from #3472 — the one that would have caught the #3459 disaster. Run locally here because #3472 isn't merged yet (it touches .github/, so Warden Clearance deliberately won't self-approve it and it needs a human review).

Breaking-change audit (v36 → v43)

  • v41 "PDFs no longer create a separate WebContents" — checked because main.mjs:2303 sets plugins: true. A real packaged PDF kept the same discovered CDP page target; nothing depends on a separate PDF WebContents.
  • v42 "macOS notifications now use UNNotification" — packaged app emits show correctly. Note: unsigned pnpm dev now logs a UNErrorDomain failure, i.e. notifications don't fire in unsigned dev builds. Documented upstream behaviour, packaged builds unaffected, but developers should know.
  • v42 "electron no longer self-downloads via postinstall" — lazy download works; no postinstall reliance.
  • v43 dialogs default to Downloads when no defaultPath — accepted, no prior-directory contract in the code.
  • All other v36–v43 removals/deprecations were unused; Linux GTK/Wayland/rounded-corner/WCO changes have no code dependency here.

Unproven

Windows and Linux packaging/runtime, Intel macOS, Developer ID signing + notarization, and updater distribution. Given the blast radius I'd suggest an alpha build before this reaches everyone.

Electron 35's last release was 2025-08-19 and only the latest three
majors are supported, so we were running an EOL Chromium 134 with ~11
months of unpatched CVEs. 43 brings Chromium 150 / Node 24.18 and a full
support window (44 is already in alpha, so 41 would have aged out
immediately).

- rebuild better-sqlite3 against the new ABI (148) for dev and packaging
- node-pty ships matching prebuilds, no rebuild needed

Electron only: no entitlements, no configureWebAuthn, no passkey work.
The previous 41 attempt bricked the signed app by adding the restricted
keychain-access-groups entitlement without a provisioning profile; that
is deliberately excluded here.
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 4, 2026 6:54am
openwork-den Ready Ready Preview Aug 4, 2026 6:54am
openwork-den-worker-proxy Ready Ready Preview Aug 4, 2026 6:54am
openwork-landing Ready Ready Preview, v0 Aug 4, 2026 6:54am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Aug 4, 2026 6:54am

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No new security issues found in this diff (f28b1bdad12a50ecaad428b57ad4079c435ed5a9). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii
benjaminshafii merged commit eb0d0be into dev Aug 4, 2026
26 checks passed
benjaminshafii pushed a commit that referenced this pull request Aug 5, 2026
…ing releases (#3561)

Since the Electron 35->43 upgrade (#3478) every Linux electron build fails:
apps/desktop moved to better-sqlite3 ^13 but apps/server still pinned
^12.11.1, and electron-builder rebuilds every copy of the module it finds
in the workspace. v12 compiles against raw V8 headers, which GCC rejects
under Electron 43 (v8config.h "expected identifier before __attribute__"),
so all six electron-linux-* variants have been red since v0.18.13.

Converge apps/server on better-sqlite3 ^13.0.2 (same as desktop). v13 is
built on N-API via node-addon-api, so it no longer compiles against V8
headers at all - immune to this class of breakage. Server usage is plain
prepare/get/readonly, unchanged across v12->v13.

Also mark aur-publish continue-on-error: v0.18.14's rerun failed only
because aur.archlinux.org was down for maintenance; a community-channel
outage should not mark an otherwise-published release run as failed.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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