[BUG] Input freezes on Windows when launching Claude Code from certain directories (native installer)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code becomes unresponsive to keyboard input when launched from certain directories on Windows. The terminal appears normal but no keystrokes are registered.
Environment:
- OS: Windows 11
- Shell: PowerShell 7.5.4
- Claude Code version: Latest (native installer)
Steps to reproduce:
- Install Claude Code via native installer (latest version)
- Open PowerShell
- cd C:\Users\<username>\Documents (or subdirectories)
- Run
claude - Try to type - no input is accepted
Expected behavior: Claude Code accepts keyboard input normally
Actual behavior: Terminal loads but keyboard input is completely frozen. Cannot type anything.
Workaround:
Downgrading to npm version 2.1.29 fixes the issue:
npm install -g @anthropic-ai/claude-code@2.1.29
Notes:
- Works fine when launched from home directory (C:\Users\<username>)
- Breaks in Documents and its subdirectories
- The npm-based version (2.1.29) works correctly in all directories
- Issue appeared after Claude Code switched from npm to native installer
What Should Happen?
Claude Code should accept keyboard input normally when launched from any directory, including C:\Users\<username>\Documents and its subdirectories.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code via native installer (latest version)
- Open PowerShell
cd C:\Users\<username>\Documents(or any subdirectory)- Run
claude - Try to type - no input is accepted
Note: The issue does NOT occur when launching from the home directory (C:\Users\<username>).
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.29
Claude Code Version
Latest (native installer)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 14 comments on GitHub. Read the full discussion on GitHub ↗