Skip to content

chore: replace electron-toolkit utilities with Electron APIs - #31824

Merged
nwparker merged 2 commits into
mainfrom
nwparker/remove-electron-toolkit-utils
Oct 22, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/remove-electron-toolkit-utils

Conversation

@nwparker

@nwparker nwparker commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 41 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​72 $\color{#cf222e}{\Huge{\mathbf{−}}}$​130 $\color{#cf222e}{\Huge{\mathbf{−}}}$​58
Prod 22 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40 $\color{#cf222e}{\Huge{\mathbf{−}}}$​81 $\color{#cf222e}{\Huge{\mathbf{−}}}$​41

Orca used @electron-toolkit/utils only for its development flag and Windows app identity wrapper. Use Electron’s app.isPackaged and app.setAppUserModelId directly, preserving the executable-path identity in Windows development builds and Orca’s app ID in packaged builds.

Remove the runtime dependency, packaging entry, and obsolete toolkit mocks. The lockfile loses exactly one package version, with no additions or changes to retained package records.

Validation: 490 tests passed across 43 startup, updater, window, IPC, and packaging suites (1 skipped); all four pnpm tc projects passed; changed-code quality, formatting, and frozen install passed. Startup tests cover Windows development/packaged identity and the macOS/Linux no-op behavior.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 75ca085c-ad56-4a11-865b-7b78bcd0bd04
📥 Commits

Reviewing files that changed from the base of the PR and between 60f5cd7 and 1ac3e8a.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 62
  • config/packaged-runtime-node-modules.cjs
  • package.json
  • src/main/app-icon.test.ts
  • src/main/app-icon.ts
  • src/main/ipc/app.test.ts
  • src/main/ipc/app.ts
  • src/main/runtime/rpc/methods/orchestration/worker/agent-status-producer-census.test.ts
  • src/main/startup/browser-process-user-agent-ordering.test.ts
  • src/main/startup/codex-hook-startup-wiring.test.ts
  • src/main/startup/gpu-lifecycle-install-dir-acl-guard.test.ts
  • src/main/startup/main-process-preflight.ts
  • src/main/startup/main-process-ready-duplicate-pty-repair.test.ts
  • src/main/startup/main-process-ready-foundation.ts
  • src/main/startup/main-process-ready-identity-write.test.ts
  • src/main/startup/main-process-ready-runtime.ts
  • src/main/startup/main-process-runtime-launch-activation.test.ts
  • src/main/startup/main-process-runtime-launch.ts
  • src/main/updater-linux-package-recovery-actions.test.ts
  • src/main/updater-sqlite-profile-downgrade.test.ts
  • src/main/updater-test-harness.ts
  • src/main/updater.build-channel-selection.test.ts
  • src/main/updater.check-failure.test.ts
  • src/main/updater.check-preflight.test.ts
  • src/main/updater.check-settlement.test.ts
  • src/main/updater.feed-attempt-lifetime.test.ts
  • src/main/updater.headless-serve-install.test.ts
  • src/main/updater.install-failure-cause.test.ts
  • src/main/updater.linux-externally-managed.test.ts
  • src/main/updater.linux-root-package-install.test.ts
  • src/main/updater.mac-install.test.ts
  • src/main/updater.nudge-campaign.test.ts
  • src/main/updater.prerelease-fallback.test.ts
  • src/main/updater.publishing-window-feed.test.ts
  • src/main/updater.quit-and-install.test.ts
  • src/main/updater.startup-scheduling.test.ts
  • src/main/updater/updater-build-selection.ts
  • src/main/updater/updater-menu-checks.ts
  • src/main/updater/updater-nudge.ts
  • src/main/updater/updater-remote-status.ts
  • src/main/updater/updater-scheduling.ts
  • src/main/updater/updater-setup.ts
  • src/main/window/createMainWindow-close-confirmation.test.ts
  • src/main/window/createMainWindow-low-commit-oom-recovery.test.ts
  • src/main/window/createMainWindow-markdown-editor-focus.test.ts
  • src/main/window/createMainWindow-recovery-reload-watchdog.test.ts
  • src/main/window/createMainWindow-renderer-crash-recovery.test.ts
  • src/main/window/createMainWindow-renderer-launch-failure.test.ts
  • src/main/window/createMainWindow-startup-reveal.test.ts
  • src/main/window/createMainWindow-system-resume-relay.test.ts
  • src/main/window/createMainWindow-terminal-focus-shortcuts.test.ts
  • src/main/window/createMainWindow-test-harness.ts
  • src/main/window/createMainWindow-tray-minimize-close.test.ts
  • src/main/window/createMainWindow-user-quit-close.test.ts
  • src/main/window/createMainWindow-zoom-and-tab-switch-shortcuts.test.ts
  • src/main/window/createMainWindow.test.ts
  • src/main/window/createMainWindow.ts
  • src/main/window/dashboard-popout-window.test.ts
  • src/main/window/dashboard-popout-window.ts
  • src/main/window/main-window-shortcut-routing.ts
  • src/main/window/renderer-recovery-reload-watchdog.test.ts
  • src/main/window/renderer-recovery-reload-watchdog.ts
  • src/main/window/workspace-space-window.ts
💤 Files with no reviewable changes: 33
  • src/main/startup/browser-process-user-agent-ordering.test.ts
  • package.json
  • src/main/updater.headless-serve-install.test.ts
  • src/main/window/createMainWindow-tray-minimize-close.test.ts
  • src/main/updater.check-settlement.test.ts
  • config/packaged-runtime-node-modules.cjs
  • src/main/startup/codex-hook-startup-wiring.test.ts
  • src/main/updater.nudge-campaign.test.ts
  • src/main/window/createMainWindow-zoom-and-tab-switch-shortcuts.test.ts
  • src/main/updater.prerelease-fallback.test.ts
  • src/main/window/createMainWindow-startup-reveal.test.ts
  • src/main/window/createMainWindow-system-resume-relay.test.ts
  • src/main/updater.publishing-window-feed.test.ts
  • src/main/window/createMainWindow-user-quit-close.test.ts
  • src/main/updater.linux-root-package-install.test.ts
  • src/main/window/createMainWindow-low-commit-oom-recovery.test.ts
  • src/main/updater-sqlite-profile-downgrade.test.ts
  • src/main/window/createMainWindow-renderer-launch-failure.test.ts
  • src/main/updater.feed-attempt-lifetime.test.ts
  • src/main/runtime/rpc/methods/orchestration/worker/agent-status-producer-census.test.ts
  • src/main/window/createMainWindow.test.ts
  • src/main/window/createMainWindow-markdown-editor-focus.test.ts
  • src/main/updater.quit-and-install.test.ts
  • src/main/updater.linux-externally-managed.test.ts
  • src/main/ipc/app.test.ts
  • src/main/startup/main-process-runtime-launch-activation.test.ts
  • src/main/updater-linux-package-recovery-actions.test.ts
  • src/main/window/createMainWindow-close-confirmation.test.ts
  • src/main/updater.build-channel-selection.test.ts
  • src/main/updater.check-preflight.test.ts
  • src/main/startup/main-process-ready-duplicate-pty-repair.test.ts
  • src/main/window/createMainWindow-renderer-crash-recovery.test.ts
  • src/main/updater-test-harness.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.

📝 Walkthrough

Application runtime code now uses Electron’s app.isPackaged instead of @electron-toolkit/utils development-state checks. This changes development-mode decisions in startup, identity handling, window loading, and updater checks. The dependency and its packaged-runtime root entry were removed. Test mocks and shared harnesses now set Electron’s packaged state, and startup identity tests cover Windows packaged and unpackaged cases plus packaged macOS and Linux cases.

Priority: ⬇️ Low

Estimated code review effort:

Merge Risk: ⚪ Minimal · up to 1ac3e

No actionable merge-blocking issue was identified; the change is ready for normal merge checks.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main change and reports validation results, but it omits most required template sections, including the linked issue, visual proof or an explicit N/A, testing checkboxes, … Update the description to use the repository template. Add the required sections and provide a linked issue, visual-proof statement, testing details and checkbox status, applicable AI disclosure, review notes, agent-skill boundary selection…
Docstring Coverage Warning Docstring coverage is 18.75% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 16 functions across 29 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: replacing Electron Toolkit utilities with Electron APIs.
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.
Full details: Description check

Explanation

The description explains the main change and reports validation results, but it omits most required template sections, including the linked issue, visual proof or an explicit N/A, testing checkboxes, AI disclosure, review notes, agent-skill boundary, and checklist confirmations.

Resolution

Update the description to use the repository template. Add the required sections and provide a linked issue, visual-proof statement, testing details and checkbox status, applicable AI disclosure, review notes, agent-skill boundary selection, and checklist confirmations.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 35596d1 into main Oct 22, 2026
61 of 62 checks passed
kimyk0120 added a commit to kimyk0120/orca that referenced this pull request Oct 22, 2026
… gone

main replaced @electron-toolkit/utils with Electron APIs (stablyai#31824), so the
detached terminal window picks the dev renderer URL the same way the
dashboard pop-out does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QCGg3xzzG6zeVE2aanNY4S
Velm14 added a commit to Velm14/orca that referenced this pull request Oct 22, 2026
Main dropped @electron-toolkit/utils (stablyai#31824); the notch window follows the
dashboard popout's check.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Oct 23, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Oct 29, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 5, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 6, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 7, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 9, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 9, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 9, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 9, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 9, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 10, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 10, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 11, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 12, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 15, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 16, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
j-madrone added a commit to j-madrone/orca that referenced this pull request Nov 20, 2026
…equired voice.control

Main removed @electron-toolkit/utils (stablyai#31824), so the shortcut test's mock
of it is dead; and VoiceSettings.control is now required, so main's new
browser-link fixture hydrates it from getDefaultVoiceControlSettings().

Co-Authored-By: Claude Code <[email protected]>
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