Skip to content

Restore packaged desktop preload bridge - #26

Merged
WebCrew merged 1 commit into
mainfrom
fix/preload-host-bridge
Sep 7, 2026
Merged

Restore packaged desktop preload bridge#26
WebCrew merged 1 commit into
mainfrom
fix/preload-host-bridge

Conversation

@WebCrew

@WebCrew WebCrew commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Outcome

Restores the Electron desktop host bridge in packaged builds, so project creation and project-backed saving are available again.

Root cause

The Beta 2 preload attempted to load package.json with a local require() before exposing window.parlynHost. Electron's sandboxed preload environment rejects that import and aborted the entire bridge.

Changes

  • read app version/platform through a trusted IPC handler backed by app.getVersion()
  • keep the preload limited to the supported Electron API
  • add a restricted VM contract test that would fail on the Beta 2 regression
  • add a real sandboxed Electron preload smoke test to every Windows package build
  • prepare a non-overwriting v0.5.0-beta.3 replacement prerelease and acceptance checklist

Verification

  • npm run check
  • renderer release bundle ✅
  • real Electron smoke test is wired into both Windows build commands and will run on the Windows CI runner

Closes #25. Continues #23.

@WebCrew
WebCrew merged commit 50b812c into main Sep 7, 2026
5 checks passed
@WebCrew
WebCrew deleted the fix/preload-host-bridge branch September 8, 2026 16:10
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.

Packaged preload bridge fails before exposing project APIs

1 participant