[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_
14 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I have the same issue, opens up fine in my home directory but when I open it in me repo its just get stuck and I can't type anything
Same here! Please fix asap.
Same, totally unusable.
2.1.29 last one working
2.1.31 has the same error.
Edit: Tried CC from 2.1.19 to 2.1.29 and all of them worked well for me. So the bug must have come from .30 or .31. Suggest you can downgrade to 2.1.28 or 2.1.29 if that works for you.
I have the same bug. I can't use CC on Windows from 2.1.30 anymore.
I'm experiencing the same issue. However, when I run Claude on a new project instead of an existing one, it works fine. Has anyone found a solution for this?
for me right now the solution is to open claude in my home directory and just point him to where the repo and tell him what to do, kindy annoying but works
Doesn't seem to be related to the npm installer specifically. Downgrading to the native 2.1.29 version with
claude install 2.1.19also fixes it and upgrading again withclaude installbreaks it once more.Seems like Enter, Enter unfreezes it for me on 2.1.31.
workaround: turn off superpowers plugin
I'm getting this intermittently, where the terminal freezes at random and I have to restart the terminal. Still happens with v.2.1.52
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.