You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs - #43018
This upgrades Orca's desktop engine from Electron 43 to Electron 45. Two breaking changes force code changes beyond the version bump:
Clipboard: Electron 44 made the clipboard asynchronous. Every read and write now returns a Promise, and several old calls (readImage, readBuffer, readHTML, writeImage, writeBuffer) are gone.
Sandboxed preloads: Electron 45 removed Node globals such as Buffer from them.
Without these changes, copy/paste and dictation would break. Users should see no difference.
node-abi 4.33.0 → 4.40.0. The old version doesn't know Electron 45, so native-module rebuilds failed in CI with Could not detect abi for version 45.3.2.
Webhook-key clipboard wipe. A second copy of the password-wipe bug (below), in code main added later.
Docs for the 45.3.3 pin and its Node security release.
Dropping the embedded browser's prompt() shim (below).
Adapting to main's newer code. Main's newer clipboard handler tests, the Windows FileNameW fallback, the certificate guard's new location (main's startup file is at its line limit), and the E2E spec's new location.
Runtime
Pins Electron 45.3.3: Chromium 156.0.8078.100, embedded Node 24.22.3, ABI 150. Main is on 43.8.10 (Node 24.22.1).
Node 24.22.3 is a Node.js security release (9 High, 7 Medium, 3 Low CVEs, mostly http2 and TLS). 45.3.3 was the first Electron to carry it. 43.x still doesn't, though 44.11.5 now does.
Don't apply: the server-side ones (for example CVE-2026-126051, a remotely reachable TLS server crash, plus CVE-2026-123864 and CVE-2026-123872). Orca runs no TLS, HTTPS or http2 server and starts Chromium with --disable-http2.
Do apply, to Orca's outgoing TLS (link previews, downloads, diagnostic uploads, proxy tunnels): CVE-2026-123877 and CVE-2026-123871.
Why 45.3.3 and not newer: it's the newest 45.x patch whose Node fix has cleared the repo's 3-day minimumReleaseAge gate.
45.3.4 only fixes a memory leak.
45.4.1 (Nov 19) adds 83 upstream Chromium/V8/ANGLE/FFmpeg/PDFium security cherry-picks plus about a dozen bug fixes. It clears the gate Nov 22 and is the planned next bump before merge.
The separately managed Node runtime for orca serve and remote hosts stays at 24.22.1. node-runtime-pin.ts only updates its Electron association.
Clipboard: every caller in main moved to the async ClipboardItem/Blob API
clipboard-formats.ts (new). One place for raw native formats (electron application/osclipboard;format="…"), PNG writes, and HTML reads.
Text writes (clipboard-text-publisher.ts, clipboard-text-write-verify.ts).
Writes and read-back verification are awaited inside the existing serialized queue, so a failed write rejects instead of reporting success.
Main previously counted only Wayland writes against the 32-pending-write cap. Every write is now async, so the cap covers all platforms.
Plain-text paste (clipboard-plain-text-read.ts). The macOS Universal Clipboard fallback is now async.
Link HTML (clipboard:readLinkHtml). readHTML() no longer exists, so it reads the text/html item.
Images (clipboard-native-image.ts).
Reads image/* and then the macOS public.png/public.tiff types as bytes. That keeps the fix for JPEG data stored under public.png.
Byte and dimension limits are checked before nativeImage decodes anything.
writeImage validates the PNG and writes it through ClipboardItem. It still runs inside the existing busy-queue and still rejects on refusal.
text/uri-list is now read first on every platform, since Electron 44 maps it to native file references.
Windows drive and UNC URLs decode with Windows path rules.
Opaque file:///.file/id= URLs and NUL bytes are rejected.
Windows copied-image files (clipboard-windows-image-file.ts). These now accept the URI list but still require exactly one fully qualified path. If the URI list yields no paths, they fall back to Explorer's FileNameW/Shell IDList Array formats, as main does.
clipboard:writeImage keeps main's synchronous handler shape, so an unauthorized sender or an oversized payload is refused before anything is decoded.
File copy (clipboard-file-copy.ts). Native format writes are awaited.
Linux selection clipboard. Uses clipboard.selection on Linux only, and is a no-op elsewhere.
Other callers now await their clipboard writes:
the crash-report copy
the renderer-recovery and profile-state recovery dialogs
the main-window and startup copy actions
⚠️ Security fixes found during the port
Main has two features that wipe a secret from the clipboard if it's still there after a timeout. Both compared clipboard.readText() to the secret. On Electron 45, readText() returns a Promise, so the check is always false and the secret would never be wiped. Both now await the read before comparing.
Saved passwords (src/main/ipc/browser/browser-passwords-entry-ipc.ts), 2-minute wipe. Typecheck can't catch this one, because comparing a Promise to a string is valid TypeScript.
Webhook keys (src/main/window/clipboard/clipboard-secret-clear.ts), 1-minute wipe. Typecheck did flag this one.
Embedded browser. Guests use zoom mode isolated (new per-WebContents zoom in 44). Orca's per-site/profile zoom persistence and propagation are unchanged.
Client certificates. In 44, select-client-certificate can arrive with webContents === null for background network requests. Orca now declines those instead of letting Electron present the user's first matching certificate. Requests from browser windows are unchanged. The guard lives in src/main/startup/network-compatibility/background-client-certificate-guard.ts and is registered from configureElectronNetworkCompatibility.
Child-process crashes. Crash details include the new systemErrorCode.
Windows packaging (package-windows-wer-helper.cjs, afterPack). electron_wer.dll is renamed to Orca_wer.dll next to the executable. It accepts a builder that already renamed it and fails packaging if the helper is missing.
IPC. Clipboard channel names and results are unchanged, so preload, web and mobile callers and older paired clients still work.
Docs
docs/agents-md-refs/electron-45-upgrade.md reviews every Electron 44/45 breaking change, deprecation and new feature with Orca's decision. It moved from docs/reference/ because that folder is gitignored on main.
Why
Support window. Electron patches only the latest three majors, so 43 stops getting security fixes once 46 ships (46 is in alpha). The Chromium security fixes matter most for the embedded browser, which loads arbitrary sites.
Straight to 45, not 44 first. The clipboard rewrite is a 44 change, so 44 alone would carry most of the work and risk. It would also mean two upgrades and two soak periods, and 44 leaves Electron's support window one release sooner. The 45-only changes are small: dictation bytes, WER and the cert guard.
Lockfile. The only package versions that change are electron (43.8.10 → 45.3.3) and node-abi (4.33.0 → 4.40.0). Both integrity hashes match the npm registry. (A local pnpm build kept adding an unrelated @pnpm/exe entry to packageManagerDependencies; it was stripped so the lockfile matches main apart from those two.)
Electron binary (45.3.3). The darwin-arm64 release zip matches the GitHub release's SHASUMS256.txt. The installed Electron.app matches that zip file for file (257 files) and reports Node 24.22.3 and ABI 150.
npm checksums. The electron package's checksums.json agrees with GitHub's SHASUMS256.txt on all 67 entries. That's an independent check, since the npm package verifies its own download against that file.
node-abi. 4.40.0 is from Oct 23. It's published by Electron's npm account with SLSA provenance.
Release-age gate. No minimumReleaseAge exception was added.
Follow-up required before Electron 46: the synchronous safeStorage calls (host credentials, plugin secrets, cloud sessions) still work in 45 but are removed in 46. That migration is a separate PR; the requirements are in the upgrade doc. Do not bump to 46 first.
Linked Issue
Maintainer upgrade; supersedes #32176, which should be closed once this merges.
Visual Proof
N/A. This is a runtime upgrade with API adaptations, and no UI is intended to change. Visual regressions from the Chromium bump (rendering, fonts, GPU) are on the QA list below.
Testing
QA on 45.3.3 (high-risk flows, one QA lead per platform):
Flow
macOS
Windows
Linux
Editor copy → terminal and chat composer (exact bytes)
✅
✅
✅ X11 and Wayland
Multi-line terminal copy
✅
✅
✅ X11 and Wayland
Image paste → composer (saved attachment)
✅
✅
✅ X11
OS file-manager file copy → terminal path
✅
✅
✅ X11
Orca explorer Copy → OS paste (identical file)
✅
✅
—
Explorer .png file → composer attaches as image
—
✅
—
Saved-password copy, 2-minute wipe, later copy not wiped
blocked by Touch ID
✅
—
Linux primary selection middle-click
—
—
✅
Browser alert / confirm
✅
✅ (alert)
✅
Browser prompt()
❌, now removed (above)
—
❌, regression vs 1.4.261, now removed
QA notes:
No relevant errors: no clipboard, preload or Buffer errors in any log.
Windows Explorer copies were simulated: OS-level input isn't allowed, so the lead wrote the same clipboard formats Explorer writes. The paste back into Explorer used Explorer's real Paste command.
Wayland limits: native-Wayland image and file paste were blocked by the hidden test window's lack of focus. Released 1.4.261 is blocked the same way.
CI on the final commit is running. I'll update this line with the results.
Previous CI run (45.3.2, 4608e008b2f): 77 passed, 0 failed (15 skipped by path filters). Jobs that exercised Electron 45:
Packaging:package and package (windows), including the WER rename and native rebuild against ABI 150.
Native smoke: Ubuntu 22.04 and Windows.
Persistence: macOS 15 arm64 and Intel, Windows 2022 and Windows 11 arm64.
SSH host matrices: Windows x64/arm64 and macOS arm64/x64.
Linux builds: glibc floor, glibc 2.17 compatibility, musl.
orca serve: on Windows (D7 mode switch, missing AppData), plus the Electron/orcad mode switch.
E2E (Linux, headless Electron):
Electron runtime compatibility: dictation samples survive the sandboxed preload, and background requests don't auto-select a client certificate.
Paired-client browser screenshot copy.
All 21 workspace layout-oracle scenarios.
Other: the updater check and all 12 unit-test shards.
Local (macOS arm64):
pnpm check:changed: all 53 checks pass on the final commit.
pnpm tc: passes.
The forced native rebuild against Electron 45 succeeds.
No Buffer, process, timers/events/url shims or immediate globals remain in sandboxed preloads.
No call to a removed or now-async clipboard API is left unawaited in src/main or src/preload.
Not yet verified (QA needed before merge):
Clipboard by hand on macOS, Windows and Linux (X11 + Wayland). Covers text copy/paste, terminal copy, image paste into the composer, copying a file from Finder/Explorer into the terminal, rich-text link paste, Linux middle-click paste, and the saved-password copy and wipe. The macOS and Windows clipboard E2E specs (clipboard-macos-image-paste, file-explorer-copy-file-windows) only run on their own OS, so CI's Linux E2E skipped them.
IME (Korean, Japanese, Chinese) and dead keys. CI's real IME job was skipped by path filters.
Embedded-browser OAuth (Google, GitHub, Linear) and general site compatibility on Chromium 156.
Rendering: xterm WebGL, fonts, HiDPI, Linux GPU.
CPU and memory at real scale (many terminals, large output), compared with 43 on the same machine.
Signed and notarized macOS build, and a signed Windows build. Confirm Orca_wer.dll is signed and crash dumps still arrive.
Downgrade: open a 45-touched profile with a 43 build (browser cookies and storage).
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Added tests:
electron-runtime-compatibility.spec.ts. Real sandboxed-preload dictation transport, and the background-certificate guard.
package-windows-wer-helper.test.mjs. WER rename, and failure when the helper is missing.
Existing clipboard tests were updated for the async API:
clipboard-ipc-handlers.test.ts, clipboard-secret-clear.test.ts, clipboard-agent-session-attachment-paste.test.ts and the macOS/Windows clipboard and paired-browser E2E specs have since been deleted on main as low-value. This branch accepts those deletions.
Tests that main has deleted as low-value since #32176 were not re-added.
Performance
Mostly unchanged, with one known extra cost on paste:
Paste reads the clipboard more than once. Electron 44 removed the synchronous single-format reads, so raw-format reads, availableFormats() and image reads each call clipboard.read(). One image paste can enumerate the clipboard a few times. This only runs on paste or copy, not on any hot path. Size limits are still checked before bytes are copied into a buffer.
Text writes now count against the existing 32-pending-write cap on every platform, not just Wayland. That caps queued memory; it adds no work.
Node 24.22.3 and Chromium 156 come with Electron's own startup, IPC and timer improvements. We haven't measured them, so we don't claim them as wins.
Not measured: CPU and memory at scale (many terminals, large output) on 45 vs 43. That QA flow was cut to keep the run small. The daily/hourly channel rollout should watch it.
Risk
Level: High. This is a Chromium and runtime major upgrade that ships to every desktop user.
Riskiest areas:
Clipboard. Any path that misses an await silently does the wrong thing rather than crashing; that's exactly how the password-wipe bug looked. Users would see paste inserting nothing, an image paste treated as text, or a copy that never lands.
Embedded-browser site compatibility and IME after the Chromium jump.
Clipboard performance.availableFormats() and raw-format reads each call clipboard.read(), so one image paste can read the clipboard several times. Worth watching with large images.
Windows crash reporting depends on the WER rename.
Boundaries:
IPC contracts are unchanged, so older paired phones, web clients and SSH servers are unaffected.
macOS 12 users stay on their last compatible build through the manifest gate.
Remote and orca serve hosts keep their own Node 24.22.1 runtime. It has the same Node CVEs and needs its own bump, which isn't part of this PR.
Back-out: a plain revert restores Electron 43 (Node 24.22.1, with the CVEs above) and node-abi 4.33.0. A revert does not undo Chromium 156's changes to browser-profile data (cookies, IndexedDB, localStorage) for users who already ran 45. An older Chromium may not fully read them back, so test the downgrade before relying on a revert.
Review
Self-reviewed:
Sender authorization before any async clipboard access.
Byte, dimension and queue limits.
Write serialization and failure reporting.
Clipboard wipes after a password or webhook-key copy.
Certificate-selection authority.
WER naming.
Unchanged IPC contracts for remote/mobile clients and folder workspaces.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused (it's one runtime upgrade, but that's inherently broad)
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
Electron is upgraded from 43.8.10 to 45.4.1. Clipboard readers and writers now support asynchronous operations, and copied-file paths can be parsed from URI lists. Runtime updates cover speech audio IPC, background certificate selection, zoom mode, crash metadata, and prompt installation. Windows packaging adds WER helper handling. Upgrade documentation and compatibility tests are added.
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the Electron 45 upgrade and the adaptation of clipboard, preload, and packaging APIs. The changeset covers all of these: the electron devDependency bump, the async clipboard rewrite un…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description follows the repository template closely: it has ELI5, What Changed, Why, Testing, Performance, Risk, Review, Agent skill boundary, Notes, and Checklist sections, all substantively fill…
Full details: Title check
Explanation
The title names the Electron 45 upgrade and the adaptation of clipboard, preload, and packaging APIs. The changeset covers all of these: the electron devDependency bump, the async clipboard rewrite under src/main/window/clipboard, the sandboxed preload dictation change, and the Windows WER helper in afterPack. The title is concise and specific to the primary change, though it omits the certificate guard and the prompt() removal.
Full details: Description check
Explanation
The description follows the repository template closely: it has ELI5, What Changed, Why, Testing, Performance, Risk, Review, Agent skill boundary, Notes, and Checklist sections, all substantively filled in. The author explains the Electron 43 to 45 upgrade, the clipboard async API changes, the security fix for password and webhook-key wipes, the removal of the embedded browser prompt() shim, and the back-out plan. Gaps: the Linked Issue section says 'Maintainer upgrade; supersedes #32176' and does not contain a 'Fixes #' issue link, which the template says should always exist for outside contributors. The Visual Proof section is marked N/A with a reason, which the template allows. The Testing section has unchecked items for manual QA that the author lists as pending before merge. The AI Disclosure section is omitted, which is acceptable for internal contributors. The description also contains a stale statement that the PR pins 45.3.3 while the diff changes package.json to 45.4.1; the objectives note the later commit changed the pin, so the body is partly out of date.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 63249634-0949-4426-a682-0b8960015309
Commits
Reviewing files that changed from the base of the PR and between a6317d2 and 3d44af5.
Files ignored due to path filters: 1
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 3
docs/agents-md-refs/electron-45-upgrade.md
package.json
src/shared/node-runtime/node-runtime-pin.ts
Files skipped from review as they are similar to previous changes: 1
docs/agents-md-refs/electron-45-upgrade.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Add unit tests for the new file-URL and URI-list parsers.
These helpers now decide which paths the renderer receives on every platform. Each rule below is security-relevant and has no direct test:
the 256 KiB size limit
the file:///.file/id= rejection
NUL-character rejection
mixed file:// and non-file:// lines
comment lines and CRLF/CR/LF splitting
windows: true versus windows: false
malformed URLs that make fileURLToPath throw
Add a colocated unit test file. Cover at least one oversized buffer, one NUL path (%00), one non-file URL line, one file:///.file/id= URL, and a Windows UNC URL.
Distinguish certificate cancellation from certificate selection.
A handler that incorrectly calls callback(certificateList[0]) still passes: the supplied list is empty, and the callback records no argument.
Supply a nonempty certificate list and capture the callback argument. Assert that the handler continues without selecting a certificate. This makes the test detect the regression named in its title.
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: 5bc9329d-bdea-4f29-adb7-8d0525458cba
Commits
Reviewing files that changed from the base of the PR and between e8a497e and 45ee9a6.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Ports #32176 onto current main and pins Electron 45.3.2. Moves every
clipboard caller to the async ClipboardItem API, including the saved-password
copy whose delayed clipboard wipe would otherwise never run.
Co-authored-by: Neil <[email protected]>
…ctron 45
node-abi 4.33.0 predates Electron 45, so CI native rebuilds failed with
"Could not detect abi for version 45.3.2". 4.40.0 maps Electron 45 to ABI 150.
… startup layout
- Keep clipboard:writeImage synchronous like main so refusals still throw before decoding.
- Fall back to Explorer's FileNameW when a Windows URI list yields no paths.
- Point the clipboard handler tests at Orca's async clipboard modules.
- Move the background client-certificate guard into network-compatibility setup;
main's ready-foundation file is at its line limit.
- Move the Electron runtime E2E spec beside the desktop fixtures.
…5 blocks
Electron 45 installs its throwing window.prompt natively in every frame, so
the about:blank iframe workaround now throws too. prompt() returns to
Electron's deliberate 'not supported' behavior; alert() and confirm() still
reach Orca's dialog.
…orts
45.4.1 carries 83 upstream ANGLE/Chromium/Dawn/FFmpeg/PDFium/V8 security
cherry-picks over 45.3.3. Same Chromium 156.0.8078.100, Node 24.22.3 and ABI 150.
Verified against the GitHub release file-for-file and against npm's checksums.
- Reject Windows device and pipe paths from text/uri-list, as the FileNameW path already does.
- A newer copied secret now supersedes a clipboard read already in flight.
- Docs: Electron 45 rejects decryptStringAsync when the key provider is temporarily
unavailable; CVE-2026-123864 and CVE-2026-123872 are server-side.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
This upgrades Orca's desktop engine from Electron 43 to Electron 45. Two breaking changes force code changes beyond the version bump:
readImage,readBuffer,readHTML,writeImage,writeBuffer) are gone.Bufferfrom them.Without these changes, copy/paste and dictation would break. Users should see no difference.
What Changed
Six commits:
node-abi4.33.0 → 4.40.0. The old version doesn't know Electron 45, so native-module rebuilds failed in CI withCould not detect abi for version 45.3.2.prompt()shim (below).FileNameWfallback, the certificate guard's new location (main's startup file is at its line limit), and the E2E spec's new location.Runtime
http2and TLS). 45.3.3 was the first Electron to carry it. 43.x still doesn't, though 44.11.5 now does.http2server and starts Chromium with--disable-http2.minimumReleaseAgegate.orca serveand remote hosts stays at 24.22.1.node-runtime-pin.tsonly updates its Electron association.Clipboard: every caller in main moved to the async
ClipboardItem/BlobAPIclipboard-formats.ts(new). One place for raw native formats (electron application/osclipboard;format="…"), PNG writes, and HTML reads.clipboard-text-publisher.ts,clipboard-text-write-verify.ts).clipboard-plain-text-read.ts). The macOS Universal Clipboard fallback is now async.clipboard:readLinkHtml).readHTML()no longer exists, so it reads thetext/htmlitem.clipboard-native-image.ts).image/*and then the macOSpublic.png/public.tifftypes as bytes. That keeps the fix for JPEG data stored underpublic.png.nativeImagedecodes anything.writeImagevalidates the PNG and writes it throughClipboardItem. It still runs inside the existing busy-queue and still rejects on refusal.clipboard-copied-file-paths.ts,clipboard-file-urls.ts).text/uri-listis now read first on every platform, since Electron 44 maps it to native file references.file:///.file/id=URLs and NUL bytes are rejected.clipboard-windows-image-file.ts). These now accept the URI list but still require exactly one fully qualified path. If the URI list yields no paths, they fall back to Explorer'sFileNameW/Shell IDList Arrayformats, as main does.clipboard:writeImagekeeps main's synchronous handler shape, so an unauthorized sender or an oversized payload is refused before anything is decoded.clipboard-file-copy.ts). Native format writes are awaited.clipboard.selectionon Linux only, and is a no-op elsewhere.Main has two features that wipe a secret from the clipboard if it's still there after a timeout. Both compared
clipboard.readText()to the secret. On Electron 45,readText()returns a Promise, so the check is always false and the secret would never be wiped. Both now await the read before comparing.src/main/ipc/browser/browser-passwords-entry-ipc.ts), 2-minute wipe. Typecheck can't catch this one, because comparing a Promise to a string is valid TypeScript.src/main/window/clipboard/clipboard-secret-clear.ts), 1-minute wipe. Typecheck did flag this one.Other Electron 44/45 adaptations (from #32176)
Uint8Arraybyte view instead ofBuffer, and main rebuilds theFloat32Arrayfrom those bytes. The directMessagePortpath that main added since Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs #32176 is unchanged.isolated(new per-WebContents zoom in 44). Orca's per-site/profile zoom persistence and propagation are unchanged.select-client-certificatecan arrive withwebContents === nullfor background network requests. Orca now declines those instead of letting Electron present the user's first matching certificate. Requests from browser windows are unchanged. The guard lives insrc/main/startup/network-compatibility/background-client-certificate-guard.tsand is registered fromconfigureElectronNetworkCompatibility.systemErrorCode.package-windows-wer-helper.cjs,afterPack).electron_wer.dllis renamed toOrca_wer.dllnext to the executable. It accepts a builder that already renamed it and fails packaging if the helper is missing.prompt()support removedprompt()in Orca's built-in browser now throws "prompt() is not supported" again. That's Electron's deliberate default, and Orca's behavior before fix(browser): let agents and users answer page alert, confirm and prompt dialogs on their page #36268 (Oct 30).alert()andconfirm()still go through Orca's dialog, and agents can still answer them.prompt()work by calling the nativepromptof a hiddenabout:blankiframe. Electron 45 installs its throwingwindow.promptnatively in every frame (refactor: set up window overrides and <webview> focus/visibility natively electron/electron#53971, backported in #54048), so that iframe throws too.prompt(), so this won't be "fixed" upstream.orca servepages, and on the phone it could only take the default text.src/preload/browser/window-controls/browser-window-prompt-installation.tsand its install insrc/preload/browser-guest.ts.orca dialog accept --text, so the CLI doesn't change for existing clients.prompt()back later: a synchronous preload→main request answered by Orca's own dialog would not depend on Electron internals.Unchanged on purpose
minimumSystemVersion: '13.0', which would have lowered main's 13.4 (on-device speech needs it). macOS 12 users are already held on their last compatible build by the update-manifest gate (Keep dropped-macOS updaters on their last compatible build and explain why #38777, fix(packaging): require macOS 13.4, the minimum the on-device speech engine runs on #39135).Docs
docs/agents-md-refs/electron-45-upgrade.mdreviews every Electron 44/45 breaking change, deprecation and new feature with Orca's decision. It moved fromdocs/reference/because that folder is gitignored on main.Why
Supply chain:
electron(43.8.10 → 45.3.3) andnode-abi(4.33.0 → 4.40.0). Both integrity hashes match the npm registry. (A local pnpm build kept adding an unrelated@pnpm/exeentry topackageManagerDependencies; it was stripped so the lockfile matches main apart from those two.)SHASUMS256.txt. The installedElectron.appmatches that zip file for file (257 files) and reports Node 24.22.3 and ABI 150.electronpackage'schecksums.jsonagrees with GitHub'sSHASUMS256.txton all 67 entries. That's an independent check, since the npm package verifies its own download against that file.node-abi. 4.40.0 is from Oct 23. It's published by Electron's npm account with SLSA provenance.minimumReleaseAgeexception was added.Follow-up required before Electron 46: the synchronous
safeStoragecalls (host credentials, plugin secrets, cloud sessions) still work in 45 but are removed in 46. That migration is a separate PR; the requirements are in the upgrade doc. Do not bump to 46 first.Linked Issue
Maintainer upgrade; supersedes #32176, which should be closed once this merges.
Visual Proof
N/A. This is a runtime upgrade with API adaptations, and no UI is intended to change. Visual regressions from the Chromium bump (rendering, fonts, GPU) are on the QA list below.
Testing
QA on 45.3.3 (high-risk flows, one QA lead per platform):
.pngfile → composer attaches as imagealert/confirmprompt()QA notes:
Buffererrors in any log.CI on the final commit is running. I'll update this line with the results.
Previous CI run (45.3.2,
4608e008b2f): 77 passed, 0 failed (15 skipped by path filters). Jobs that exercised Electron 45:packageandpackage (windows), including the WER rename and native rebuild against ABI 150.orca serve: on Windows (D7 mode switch, missing AppData), plus the Electron/orcad mode switch.Local (macOS arm64):
pnpm check:changed: all 53 checks pass on the final commit.pnpm tc: passes.Buffer,process, timers/events/url shims or immediate globals remain in sandboxed preloads.src/mainorsrc/preload.Not yet verified (QA needed before merge):
Clipboard by hand on macOS, Windows and Linux (X11 + Wayland). Covers text copy/paste, terminal copy, image paste into the composer, copying a file from Finder/Explorer into the terminal, rich-text link paste, Linux middle-click paste, and the saved-password copy and wipe. The macOS and Windows clipboard E2E specs (
clipboard-macos-image-paste,file-explorer-copy-file-windows) only run on their own OS, so CI's Linux E2E skipped them.IME (Korean, Japanese, Chinese) and dead keys. CI's
real IMEjob was skipped by path filters.Embedded-browser OAuth (Google, GitHub, Linear) and general site compatibility on Chromium 156.
Rendering: xterm WebGL, fonts, HiDPI, Linux GPU.
CPU and memory at real scale (many terminals, large output), compared with 43 on the same machine.
Signed and notarized macOS build, and a signed Windows build. Confirm
Orca_wer.dllis signed and crash dumps still arrive.Downgrade: open a 45-touched profile with a 43 build (browser cookies and storage).
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Added tests:
electron-runtime-compatibility.spec.ts. Real sandboxed-preload dictation transport, and the background-certificate guard.package-windows-wer-helper.test.mjs. WER rename, and failure when the helper is missing.Existing clipboard tests were updated for the async API:
clipboard-ipc-handlers.test.ts,clipboard-secret-clear.test.ts,clipboard-agent-session-attachment-paste.test.tsand the macOS/Windows clipboard and paired-browser E2E specs have since been deleted on main as low-value. This branch accepts those deletions.Tests that main has deleted as low-value since #32176 were not re-added.
Performance
Mostly unchanged, with one known extra cost on paste:
availableFormats()and image reads each callclipboard.read(). One image paste can enumerate the clipboard a few times. This only runs on paste or copy, not on any hot path. Size limits are still checked before bytes are copied into a buffer.Risk
Level: High. This is a Chromium and runtime major upgrade that ships to every desktop user.
Riskiest areas:
awaitsilently does the wrong thing rather than crashing; that's exactly how the password-wipe bug looked. Users would see paste inserting nothing, an image paste treated as text, or a copy that never lands.availableFormats()and raw-format reads each callclipboard.read(), so one image paste can read the clipboard several times. Worth watching with large images.Boundaries:
orca servehosts keep their own Node 24.22.1 runtime. It has the same Node CVEs and needs its own bump, which isn't part of this PR.Back-out: a plain revert restores Electron 43 (Node 24.22.1, with the CVEs above) and
node-abi4.33.0. A revert does not undo Chromium 156's changes to browser-profile data (cookies, IndexedDB, localStorage) for users who already ran 45. An older Chromium may not fully read them back, so test the downgrade before relying on a revert.Review
Self-reviewed:
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)