Skip to content

fix: Windows terminal blank/unresponsive - #139

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix/windows-terminal-pty
Mar 27, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix/windows-terminal-pty

Conversation

@Jinwoo-H

Copy link
Copy Markdown
Contributor

Summary

  • On Windows, process.env.SHELL is unset so PTY spawn fell back to /bin/zsh (doesn't exist) — blank terminal, no prompt, can't type
  • Now uses COMSPEC (cmd.exe) on Windows and USERPROFILE for the default working directory
  • macOS/Linux behavior is unchanged

Test plan

  • Verified on Windows 11 — terminal now shows C:\Users\...> prompt and accepts input
  • Verify macOS/Linux are unaffected (no code path changes for those platforms)

🤖 Generated with Claude Code

On Windows, `process.env.SHELL` is unset, so the PTY spawn fell back to
`/bin/zsh` which doesn't exist — resulting in a blank, unresponsive
terminal. Similarly, `process.env.HOME` is unset on Windows.

Now uses `COMSPEC` (cmd.exe) on Windows and `USERPROFILE` for the
default working directory. macOS/Linux behavior is unchanged.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Jinwoo-H
Jinwoo-H merged commit 3e65d7e into main Mar 27, 2026
1 check passed
@Jinwoo-H
Jinwoo-H deleted the fix/windows-terminal-pty branch March 27, 2026 19:11
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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