Skip to content

fix(windows): remove useConpty option causing PTY spawn failures#964

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

fix(windows): remove useConpty option causing PTY spawn failures#964
web3dev1337 merged 1 commit intomainfrom
fix/windows-pty-conpty-mismatch

Conversation

@web3dev1337
Copy link
Copy Markdown
Owner

Summary

  • Every terminal spawn fails in the Tauri desktop app on Windows with: Usage: pty.startProcess(file, cols, rows, debug, pipeName, inheritCursor)
  • Root cause: node-pty 1.2.0-beta.12 JS wrapper passes 7 args to native conptyNative.startProcess() but cached conpty.node binary only accepts 6
  • Removed useConpty: true from buildPtyOptions() and commanderService — ConPTY is already the default on modern Windows, and node-pty ignores this option (it uses useConptyDll internally)
  • Busted CI cache key (v1 → v2) to force fresh native binary rebuild

Test plan

  • Windows CI tests pass (removed useConpty assertions, added not-present checks)
  • Tauri Windows build should produce working PTY terminals

🤖 Generated with Claude Code

The bundled node-pty 1.2.0-beta.12 JS wrapper passes 7 args to
conptyNative.startProcess() but the cached native conpty.node binary
only accepts 6, causing every terminal spawn to fail with:
"Usage: pty.startProcess(file, cols, rows, debug, pipeName, inheritCursor)"

- Remove useConpty:true from buildPtyOptions and commanderService
  (ConPTY is already the default on modern Windows, and node-pty
  ignores this option anyway - it uses useConptyDll internally)
- Bust CI cache key (v1 -> v2) to force fresh native binary rebuild

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@web3dev1337 web3dev1337 merged commit 51bc725 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