Repository navigation
Fix Windows bundled ConPTY packaging - #6968
Conversation
Co-authored-by: Orca <[email protected]>
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you:
Chapters generated by Stage for commit 653c0cb on Jul 1, 2026 1:01am UTC. |
📝 WalkthroughWalkthroughThis change adds Windows ConPTY runtime support for packaged node-pty builds. The electron-builder pruning script gains helpers to locate and copy conpty.dll and OpenConsole.exe into the packaged build/Release/conpty directory, with an electronArch parameter threaded through prunePackagedNodePty and prunePackagedRuntimeNodeModules, and the afterPack config now passes the target architecture. The release-cut GitHub Actions workflow adds a PowerShell preflight step on Windows builds to verify these runtime files exist before signing. Corresponding unit and contract tests were added/updated to cover the copy behavior and workflow step ordering. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
config/scripts/electron-builder-config.test.mjs (1)
176-199: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd arm64 coverage for the architecture-specific payload selection.
This test only exercises the
win10-x64path. Add a second case forwin10-arm64so the PR’s x64/arm64 selection contract is covered by tests.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 97a37c37-21ef-4a52-8430-0908e792bf0e
📒 Files selected for processing (5)
.github/workflows/release-cut.ymlconfig/electron-builder.config.cjsconfig/packaged-runtime-node-modules.cjsconfig/scripts/electron-builder-config.test.mjsconfig/scripts/package-electron-runtime-contract.test.mjs
Co-authored-by: Orca <[email protected]>
Summary
Regression
Windows daemon terminals now intentionally set
useConptyDll: truefor modern ConPTY wrap-marker behavior. Existing Windows installers lackedresources/node_modules/node-pty/build/Release/conpty/conpty.dll, so node-pty failed withCannot find conpty.dllwhen spawning shells.I verified the
v1.4.112installer payload was missingbuild/Release/conpty/conpty.dll, then ran the patched packager against that extracted payload and confirmed it created bothconpty.dllandOpenConsole.exe.Tests
pnpm exec vitest run config/scripts/electron-builder-config.test.mjs config/scripts/package-electron-runtime-contract.test.mjspnpm exec vitest run src/main/daemon/pty-subprocess.test.tspnpm exec oxlint config/packaged-runtime-node-modules.cjs config/electron-builder.config.cjs config/scripts/electron-builder-config.test.mjs config/scripts/package-electron-runtime-contract.test.mjsgit diff --checkMade with Orca 🐋