Repository navigation
fix(deps): upgrade Electron to 43.6 for startup performance and crash fixes - #19369
Conversation
|
Validation update for 8a9476a (supersedes the initial pending platform checklist):
The measured ~33% improvement is specifically a warm-cache Node-mode child-process startup benchmark, not whole-app performance. Electron 44 remains deferred for the documented clipboard API and macOS support breaks. This remains draft while the broad E2E run is assessed. No claim is made about exhaustive GPU/IME/OS testing. |
|
Additional combined-candidate validation (local, macOS arm64): merged #19361, #19369, #19377, #19378, #19362, #19380 and #19382 into local commit
All commands used |
|
Full E2E log review: keep draft. This supersedes the earlier in-progress update for Full 14-shard E2E + SSH run: raw Playwright summaries show 610 passed, 3 failed, 102 skipped in the sharded suite. Separate SSH lanes passed 47 checks: browser network routing 3, Docker watcher/parking/remote journeys 43, localhost terminal/hooks 1. Do not use the shard badges alone: GitHub reported shard 6 as successful, but its log contains two failed tests followed by
Both paired failures are being exercised together on unchanged base and the candidate. No source/test assertions were modified. Passing 75,654 unit tests, packaging, three-platform golden, WSL and mixed-version runs remains useful evidence, but does not erase these failures. Readiness waits for the controls. |
|
Ready for review with baseline E2E failures disclosed, unchanged candidate
The two paired-suite controls each failed the same two tests, at the same assertions. No tests or source were changed and these failures remain visible. This supports classifying them as existing baseline failures, not demonstrated new regressions from the dependency bump. It does not establish that those workflows work correctly on either version. Completed validation at this candidate:
The isolated exact 43.6.0 pin obtains the documented crash/security fixes and measured ~33% Node-mode child-startup improvement while preserving macOS 12 and existing clipboard APIs. Electron 44 remains deferred for its concrete API/support breaks. This is a qualified merge recommendation based on the tested scope; the three pre-existing browser failures and unexercised exhaustive GPU/IME permutations are not erased by the passing checks. Nothing has been merged into main. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe Merge Risk: ⚪ Minimal · up to This pins Electron to 43.6.0. No unresolved current-change risk remains that blocks merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description is detailed and covers the change, rationale, compatibility assessment, visual proof, testing, and review evidence. However, it does not provide the mandatory linked issue and omits the template's Notes and Checklist sections.
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the single-commit Electron upgrade from ^43.4.1 to a pinned 43.6.0, touching only package.json and pnpm-lock.yaml.
electron^43.4.1→43.6.0— one resolved package bump; the caret is dropped deliberately so future Electron updates get a separate review.- Lockfile regeneration — the
electronintegrity hash changes; the two@electron-toolkit/preload/@electron-toolkit/utilsentries are peer-qualifier-only renames (same3.0.2/4.0.0versions), so no dependency churn beyond Electron itself.
Verified the lockfile integrity hash (sha512-DqVKYV+FXheMSLTxcMQ+NCo78BDgpnToSyIzXctlUtbP3lRGEuoo1P+C2n/90rJ7TvHgzP0bpP9fbbXxp4noIg==) matches the published [email protected] tarball on the npm registry exactly, and the engines.node floor (>= 22.12.0) is unchanged. The @electron-toolkit/* peer references are updated consistently. No other version-pinning mechanism (ratchet, overrides, builder config) references the Electron version, and the scattered 43.4.1 literals in crash-reproduction comments and test fixtures remain accurate as historical context or arbitrary keying examples — none need to move with this bump.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Merge preparation update: refreshed this PR against main after merging #19361, #19362, #19377, #19378, #19380 and #19382. New head: Resolved the adjacent manifest conflict by retaining both reviewed pins, DOMPurify 3.4.14 and Electron 43.6.0. The complete dependency files match the previously tested combined candidate exactly. The final PR diff against current main is still only Electron's one manifest line and 22 lockfile lines; no application/test changes were introduced by the conflict resolution. Fresh local validation at the new head passed:
Fresh full PR CI is running. Merge will wait for its checks. The original supported-platform and baseline-control evidence remains in the previous comments; no tests were weakened or skipped to clear the merge. |
|
Refreshed head Attempt 1 had a single CPU timing failure in Fresh local types/build, 1,581 editor/i18n tests and actual Electron native-module checks also passed, as posted above. Merging under the user's explicit authorization, retaining the previously documented baseline browser E2E qualifications. |

Ready for review, with baseline E2E failures disclosed. Final evidence and old/new controls: all three full-suite failures reproduce at the same assertions on unchanged Electron 43.4.1. 75,654 unit tests, packaging, 610 full-suite E2E tests, 47 SSH checks, 57 three-platform golden tests, 9 real WSL tests and 6 packaged mixed-version checks passed. The three baseline failures and 102 full-suite skips remain disclosed.
ELI5
Upgrade Electron 43.4.1 to 43.6.0 for faster child-process startup and fixes to IPC, native-addon, Linux startup and Windows shutdown crashes. Pin the reviewed version exactly. This PR is independent of the desktop parser and cloud dependency PRs and changes only
package.jsonand Electron's lockfile entries/peer references.Electron 44 was investigated and is not a safe version-only update for Orca: its clipboard migration causes 11 type errors in current Orca code and it drops macOS 12. Staying on 43 obtains many of the relevant fixes while preserving the existing clipboard API and operating-system floor.
What Changed
electron:^43.4.1→43.6.0; the lockfile changes exactly one resolved package version.Why
node::ObjectWrapaborts with Node >=24.19. This is a reason to select 43.6 instead of stopping at 43.5, which introduced Node 24.19. Actual runtime is Node 24.20.0.Measured performance
macOS arm64, installed official Electron binaries,
ORCA_BACKGROUND_LAUNCH=1 ELECTRON_RUN_AS_NODE=1. Each process executes onlyprocess.stdout.write(process.versions.electron)and exits. Two warmup iterations per version, then 15 measured runs per version, interleaved with alternating order. Measurements include process launch and exit, using a monotonic clock.About 33% lower median child-startup time on this machine. This is a small warm-cache process benchmark, not an app-startup, UI, GPU, Windows or Linux benchmark. Raw samples are retained locally in
.context/electron-review/child-startup-benchmark.json.Why Electron 44 is deferred
Checked the 44.2.0-tagged breaking-change document, not just unreleased main-branch documentation.
clipboard.readText()becomes asynchronous; image/buffer helpers disappear; Linux selection clipboard moves to a namespace. Compiled Orca's node project against the published 44.2.0electron.d.tsin a temporary tsconfig: 11 errors inclipboard-ipc-handlers.tsandclipboard-text-write-verify.ts. This affects image paste, Windows file references, Linux selection paste and synchronous write verification. It requires an implementation migration and real clipboard tests across platforms.LSMinimumSystemVersionremains12.0. Dropping Monterey needs an explicit support-policy decision and updater/package validation.protocol.handle→net.fetchthroughput optimization, but these benefits do not make the above compatibility breaks safe. Many crash/startup fixes are explicitly backported to 43.A bounded search for open issues explicitly mentioning 43.6.0 found none on September 7; absence of reports is not proof of no regressions.
Linked Issue
User-requested isolated Electron dependency investigation; no existing issue linked.
Visual Proof
N/A — no UI implementation change. Rendered CI checks and failure screenshots are linked in the evidence above; all browser compatibility controls are complete and linked above.
Testing
All automated tests/builds/launches used
ORCA_BACKGROUND_LAUNCH=1.pnpm ensure:electron-runtime: the real installed Electron 43.6.0 loads the patched native PTY module.ELECTRON_RUN_AS_NODEsmoke: SQLite table write/read, native PTY shell output and clean exit, native@parcel/watcherfilesystem event. No window created; no clipboard contents read or modified.pnpm tc: passed.pnpm run build:electron-vite: passed, including renderer boot-graph verification. Existing large-chunk warnings remain.git diff --check: passed.$electronskill was unavailable, so no local foreground workaround was used.Host tools ran under Node 26.6.0; the installed Electron embeds Node 24.20.0 / Chromium 150.0.7871.250. The supported-platform/runtime checks and baseline comparisons are complete; see qualified readiness evidence above. A successful local build and semver-compatible update are evidence, not a zero-regression guarantee.
Review