Skip to content

fix(windows): patch node-pty startProcess arg mismatch#965

Merged
web3dev1337 merged 1 commit intomainfrom
fix/windows-pty-conpty-mismatch
Mar 20, 2026
Merged

fix(windows): patch node-pty startProcess arg mismatch#965
web3dev1337 merged 1 commit intomainfrom
fix/windows-pty-conpty-mismatch

Conversation

@web3dev1337
Copy link
Copy Markdown
Owner

Summary

  • node-pty 1.2.0-beta.12 has a bug: JS wrapper passes 7 args to conptyNative.startProcess() but the native conpty.node only accepts 6
  • This causes every PTY spawn to fail: Usage: pty.startProcess(file, cols, rows, debug, pipeName, inheritCursor)
  • Patches windowsPtyAgent.js during prepare-backend-resources.js to remove the 7th arg (useConptyDll)
  • Also removes our useConpty: true option (from previous commit) since it was unused

Test plan

  • Windows CI builds and installer should produce working terminals
  • The patch log line confirms the fix was applied

🤖 Generated with Claude Code

…kend

node-pty 1.2.0-beta.12 JS wrapper passes 7 args to
conptyNative.startProcess() but the native conpty.node binary only
accepts 6 (missing useConptyDll support). This causes every PTY spawn
to fail with "Usage: pty.startProcess(file, cols, rows, debug, pipeName,
inheritCursor)".

Patch windowsPtyAgent.js during backend resource preparation to remove
the 7th arg.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@web3dev1337 web3dev1337 merged commit 7cdae55 into main Mar 20, 2026
6 checks passed
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.

1 participant