[BUG] Include your version (2.1.85) and that it fails on Windows with long paths immediately on any bash command.
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?
I am running Claude Code on windows 11. All of a sudden I cannot push any code into github because Claude cannot find the directory where it started in and kept saying
Bash(git remote -v)
⎿ Error: Working directory "D:\XXXX\Root\DEV\Java\XXXXXXXX" no longer exists. Please restart Claude from an existing directory.
● Bash(git status)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git log --oneline -5)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git diff --stat)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
What Should Happen?
Claude push all the updates to Github
Error Messages/Logs
Bash(git remote -v)
⎿ Error: Working directory "D:\XXXX\Root\DEV\Java\XXXXXXXX" no longer exists. Please restart Claude from an existing directory.
● Bash(git status)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git log --oneline -5)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git diff --stat)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
Steps to Reproduce
Go to a long path D:\XXXX\Root\DEV\Java\XXXXXXXX
Bash(git remote -v)
⎿ Error: Working directory "D:\XXXX\Root\DEV\Java\XXXXXXXX" no longer exists. Please restart Claude from an existing directory.
● Bash(git status)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git log --oneline -5)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
● Bash(git diff --stat)
⎿ Cancelled: parallel tool call Bash(git remote -v) errored
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.85
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗