You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: upgrade to Electron 41 and fix terminal creation in packaged builds
Upgrade from Electron 33 to 41.0.2 with all native module compatibility
fixes. This is the first fully working packaged build — version reset to
v0.1.0.
Key changes:
- Electron 33 → 41.0.2, @electron/rebuild 3 → 4.0.3
- node-pty 1.0.0 → 1.2.0-beta.12 (fixes /dev/ptmx leak, better error msgs)
- better-sqlite3 → 12.8.0 (Electron 41 ABI 145 compatible)
- tsup target node20 → node22
Root cause fix: node-pty's unixTerminal.js naively replaces 'app.asar'
with 'app.asar.unpacked' in the spawn-helper path. When Module._load
already redirects requires to the unpacked path, this double-replaces
to 'app.asar.unpacked.unpacked' (ENOENT → posix_spawnp failed).
Fix: afterPack.cjs hook patches node-pty during electron-builder
packaging to use a regex with negative lookahead that avoids the
double replacement.
* chore: fix eslint config and lint warnings
- Exclude **/dist/ and scripts/ from eslint (build output and CJS scripts)
- Fix react-hooks/refs warnings in useLaunchSettings (useRef → direct call)
- Fix no-explicit-any in terminal-registry (add _loadRenderer to interface)
- Move cleanup setState to effect teardown in useTerminalScrollButton
* style: format afterPack.cjs with prettier
* fix: address PR review comments
- Fix err.stack fallback to err.message in server error handler
- Pin node-pty to exact version in server package (match root)
* chore: sync yarn.lock with pinned node-pty version
0 commit comments