Skip to content

Shell on electron-vite with Node shut out of the page - #492

Merged
jtklein merged 160 commits into
AntonelliLab:masterfrom
jtklein-agents:electron-vite
Nov 13, 2026
Merged

jtklein merged 160 commits into
AntonelliLab:masterfrom
jtklein-agents:electron-vite

Conversation

@jtklein-agents

@jtklein-agents jtklein-agents commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements Spec: shell on the current Electron (#8–#44).

 yarn start / yarn build / pack
- Create React App + electron-webpack
+ electron-vite → out/main, out/preload, out/renderer
+ electron-builder packs out/ (source tree excluded)

 page ↔ computer
- import electron / Node in the page
+ rendererBridge (preload) only
+ every window: Node shut out, context isolation, sandbox

 updates
- electron-progressbar window
+ download with no progress UI; Install Updates when ready
shell
├── electron-vite          # start, build, source maps
├── electron-builder       # pack / sign / publish (unchanged)
├── preload → rendererBridge
└── page                   # phylogenetics app; no Node
      paths.js             # plain helper
      store → bridge only

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

  • Before: yarn start split 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:e2e builds with electron-vite and launches out/main/index.js; e2e/no-node.spec.js proves 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.json main (./out/main/index.js), the packer files list, every page↔main channel (renderer bridge), window prefs (Node off), and update UX (no progress window). Analyses and the React UI are unchanged.

jtklein-agents and others added 30 commits November 10, 2026 11:26
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>
jtklein-agents and others added 14 commits November 13, 2026 11:55
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>
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>
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
jtklein marked this pull request as ready for review November 13, 2026 14:42
jtklein-agents and others added 2 commits November 13, 2026 15:43
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
@jtklein-agents jtklein-agents changed the title Start the dev shell with electron-vite Shell on electron-vite with Node shut out of the page Nov 13, 2026
jtklein-agents and others added 9 commits November 13, 2026 21:40
Release CI already runs yarn build before packing, so the PR-only shell-build job was redundant.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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
@jtklein
jtklein merged commit aabe50a into AntonelliLab:master Nov 13, 2026
7 checks passed
@jtklein-agents
jtklein-agents deleted the electron-vite branch November 14, 2026 20:21
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.

2 participants