Skip to content

Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs - #43018

Merged
brennanb2025 merged 8 commits into
mainfrom
brennanb2025/electron-45
Nov 26, 2026
Merged

brennanb2025 merged 8 commits into
mainfrom
brennanb2025/electron-45

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

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.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​79 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​79
Prod 30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​428 $\color{#cf222e}{\Huge{\mathbf{−}}}$​204 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​224

What Changed

Six commits:

  1. The upgrade. It ports Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs #32176 (Neil, co-author) onto current main. That branch was about 5,800 commits behind and conflicted in 26 files.
  2. 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.
  3. Webhook-key clipboard wipe. A second copy of the password-wipe bug (below), in code main added later.
  4. Docs for the 45.3.3 pin and its Node security release.
  5. Dropping the embedded browser's prompt() shim (below).
  6. 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.
  • 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.
  • Copied-file lists (clipboard-copied-file-paths.ts, clipboard-file-urls.ts).
    • 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.

Other Electron 44/45 adaptations (from #32176)

  • Dictation. The IPC fallback sends audio as a Uint8Array byte view instead of Buffer, and main rebuilds the Float32Array from those bytes. The direct MessagePort path that main added since Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs #32176 is unchanged.
  • 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.

⚠️ Embedded-browser prompt() support removed

  • What changed: prompt() 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() and confirm() still go through Orca's dialog, and agents can still answer them.
  • Why: fix(browser): let agents and users answer page alert, confirm and prompt dialogs on their page #36268 made prompt() work by calling the native prompt of a hidden about:blank iframe. Electron 45 installs its throwing window.prompt natively in every frame (refactor: set up window overrides and <webview> focus/visibility natively electron/electron#53971, backported in #54048), so that iframe throws too.
    • Linux QA confirmed the regression against released 1.4.261 (Electron 43.8.7), where all three dialogs worked.
    • Electron has never supported prompt(), so this won't be "fixed" upstream.
    • The support was already partial: it never worked on orca serve pages, and on the phone it could only take the default text.
  • Removed: src/preload/browser/window-controls/browser-window-prompt-installation.ts and its install in src/preload/browser-guest.ts.
  • Kept on purpose:
    • The dialog handler's generic prompt type, which is shared with mobile/CLI and is now unreachable on desktop.
    • orca dialog accept --text, so the CLI doesn't change for existing clients.
  • If we want prompt() back later: a synchronous preload→main request answered by Orca's own dialog would not depend on Electron internals.

Unchanged on purpose

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.
  • Fresh port instead of rebasing Upgrade to Electron 45 and adapt clipboard, preload, and packaging APIs #32176. Main moved and deleted many of the clipboard files and added new synchronous clipboard callers (password copy, link HTML, plain-text fallback). A mechanical rebase would have missed them.

Supply chain:

  • 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:

  1. 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.
  2. Embedded-browser site compatibility and IME after the Chromium jump.
  3. 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.
  4. 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)

@brennanb2025
brennanb2025 force-pushed the brennanb2025/electron-45 branch from 478979d to 45ee9a6 Compare November 16, 2026 14:01
@brennanb2025
brennanb2025 marked this pull request as ready for review November 16, 2026 14:01
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

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.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

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.

Merge Risk: Low · previous review 3d44a · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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.

Share

Recent 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: 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Nitpick comments: 2

src/main/window/clipboard/clipboard-file-urls.ts: 1

3-24: Trivial · Maintainability & Code Quality · Quick win

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.

tests/e2e/electron-runtime-compatibility.spec.ts: 1

46-49: Trivial · Maintainability & Code Quality · Quick win

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.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 31

  • config/electron-builder.config.cjs
  • config/scripts/desktop-distribution/windows/package-windows-wer-helper.cjs
  • config/scripts/desktop-distribution/windows/package-windows-wer-helper.test.mjs
  • docs/agents-md-refs/electron-45-upgrade.md
  • package.json
  • src/main/browser/site-settings/display/browser-site-display-controller.ts
  • src/main/ipc/browser/browser-passwords-entry-ipc.ts
  • src/main/ipc/crash-reporting/crash-reporting.ts
  • src/main/ipc/speech.ts
  • src/main/persistence/profile-state/startup/profile-state-startup-recovery-dialog.ts
  • src/main/startup/main-process-ready-foundation.ts
  • src/main/startup/main-process-ready-runtime.ts
  • src/main/window/clipboard/clipboard-agent-session-attachment-paste.test.ts
  • src/main/window/clipboard/clipboard-copied-file-paths.ts
  • src/main/window/clipboard/clipboard-file-copy.ts
  • src/main/window/clipboard/clipboard-file-urls.ts
  • src/main/window/clipboard/clipboard-formats.ts
  • src/main/window/clipboard/clipboard-image-source.ts
  • src/main/window/clipboard/clipboard-ipc-handlers.ts
  • src/main/window/clipboard/clipboard-native-image.ts
  • src/main/window/clipboard/clipboard-plain-text-read.ts
  • src/main/window/clipboard/clipboard-text-publisher.ts
  • src/main/window/clipboard/clipboard-text-write-verify.ts
  • src/main/window/clipboard/clipboard-windows-image-file.ts
  • src/main/window/renderer-recovery/renderer-recovery-prompt.ts
  • src/preload/api/speech/speech-bridge.ts
  • src/shared/node-runtime/node-runtime-pin.ts
  • tests/e2e/clipboard-macos-image-paste.spec.ts
  • tests/e2e/electron-runtime-compatibility.spec.ts
  • tests/e2e/file-explorer-copy-file-windows.spec.ts
  • tests/e2e/paired-client-hosted-browser-markup.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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: e90b6f9a-1020-4bc2-8338-57bad501b940
Commits

Reviewing files that changed from the base of the PR and between 4608e00 and e3ae341.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 17

  • config/electron-builder.config.cjs
  • docs/agents-md-refs/electron-45-upgrade.md
  • package.json
  • src/main/ipc/speech.ts
  • src/main/startup/configure-process.ts
  • src/main/startup/main-process-ready-runtime.ts
  • src/main/startup/network-compatibility/background-client-certificate-guard.ts
  • src/main/window/clipboard/clipboard-ipc-handlers.test.ts
  • src/main/window/clipboard/clipboard-ipc-handlers.ts
  • src/main/window/clipboard/clipboard-secret-clear.test.ts
  • src/main/window/clipboard/clipboard-secret-clear.ts
  • src/main/window/clipboard/clipboard-windows-image-file.ts
  • src/shared/node-runtime/node-runtime-pin.ts
  • tests/e2e/browser/client-hosted/paired-client-hosted-browser-markup.spec.ts
  • tests/e2e/desktop/clipboard/clipboard-macos-image-paste.spec.ts
  • tests/e2e/desktop/electron-runtime/electron-runtime-compatibility.spec.ts
  • tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/electron-45 branch from e3ae341 to a6317d2 Compare November 25, 2026 19:23

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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: db79a05d-0f35-4b13-8d56-e9792777426f
Commits

Reviewing files that changed from the base of the PR and between e3ae341 and a6317d2.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 8

  • config/electron-builder.config.cjs
  • docs/agents-md-refs/electron-45-upgrade.md
  • package.json
  • src/main/ipc/crash-reporting/crash-reporting.ts
  • src/main/startup/main-process-ready-runtime.ts
  • src/main/window/clipboard/clipboard-ipc-handlers.ts
  • src/preload/browser-guest.ts
  • src/preload/browser/window-controls/browser-window-prompt-installation.ts
Files with no reviewable changes: 2

  • src/preload/browser-guest.ts
  • src/preload/browser/window-controls/browser-window-prompt-installation.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

brennanb2025 and others added 8 commits November 25, 2026 13:32
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.
Electron 45's clipboard.readText() returns a Promise, so comparing it to the
copied secret was always false and the webhook key was never wiped.
… 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.
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