Repository navigation
Shell on electron-vite with Node shut out of the page - #492
Merged
Merged
Conversation
One command brings up the main process, preload, and page, and the window loads the live renderer with Node and the existing MobX decorators. Co-authored-by: Cursor <cursoragent@cursor.com>
The dev window still prefers the toolchain URL, and the current end-to-end run can still pass its own page URL. Co-authored-by: Cursor <cursoragent@cursor.com>
A staged yarn.lock runs the old webpack compile, and lint now covers the Vite config. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…v server. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
An include of src/main dropped the default file set, so out/ never shipped. Co-authored-by: Cursor <cursoragent@cursor.com>
…tep. Co-authored-by: Cursor <cursoragent@cursor.com>
…y token is set. Co-authored-by: Cursor <cursoragent@cursor.com>
…lectron-vite builds the shell. Co-authored-by: Cursor <cursoragent@cursor.com>
contextBridge needs isolation, so the preload keeps the page's existing Electron calls working. Co-authored-by: Cursor <cursoragent@cursor.com>
Cancel leaves the run unchanged, and a dialog failure rejects. Co-authored-by: Cursor <cursoragent@cursor.com>
Put each call back beside the helper that replaced it, logging dialog results and errors rather than bridge return values. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Turn off nodeIntegration, turn the sandbox on, and route the page only through the renderer bridge so the built shell no longer exposes Node to the page. Co-authored-by: Cursor <cursoragent@cursor.com>
Dropped logs are back in their places
Record the post-sandbox report helpers and theme persistence in the packaging note so the next ticket matches the landed shell. Co-authored-by: Cursor <cursoragent@cursor.com>
Accept #44's removal of the log-baseline check; our only edit there was dropping a dead ping line. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop localStorage so the page and the file menu share one store behind getDarkMode and setDarkMode. Co-authored-by: Cursor <cursoragent@cursor.com>
The page no longer reads the CPU list through that package, and the sandboxed preload no longer bridges electron-better-ipc. Co-authored-by: Cursor <cursoragent@cursor.com>
The page runs with Node shut out
Close the Standards and Spec gaps from the #7 integration review: dead IPC, state-report ask, pack icons/exclusions, and page stack cleaning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Fix code-review findings on the electron-vite shell
jtklein
marked this pull request as ready for review
November 13, 2026 14:42
Ban shortcut comments and store bridge subscriptions in eslint, assert live ipc exports and packer icons, and document main-ask review rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Lock shell review findings into lint and tests
Release CI already runs yarn build before packing, so the PR-only shell-build job was redundant. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove duplicate shell-build CI
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the import-lines lint check
Keep CODING_STANDARDS.md clone-local only, matching AGENTS.md. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop ipcLive, toolchain, and no-restricted-syntax guards
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements Spec: shell on the current Electron (
#8–#44).Children closed on this branch: toolchain
#8–#14, bridge surface#15–#41, Node shut out#42, dropped logs#44, plus review-lock follow-ups.Evidence
yarn startsplit CRA + electron-webpack; the page imported Electron/Node; e2e hit the old shell.After: CI on this PR is green —
build,eslint,e2e(macos-15 / ubuntu-24.04 / windows-latest),docs-e2e, CodeQL.test:e2ebuilds with electron-vite and launchesout/main/index.js;e2e/no-node.spec.jsproves the page has no Node.Merge Danger
Door: two-way
Revert restores the webpack shell. Release packing, notarize, and GitHub publish stay on electron-builder; only what they pack and how the page talks to main change.
Blast Radius: shell
Merging replaces the start/build toolchain,
package.jsonmain(./out/main/index.js), the packerfileslist, every page↔main channel (renderer bridge), window prefs (Node off), and update UX (no progress window). Analyses and the React UI are unchanged.