[BUG]
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?
Root cause analysis:
Claude Code's internal tools are hardcoded to use cygpath for path conversion on Windows. When cygpath is not available or not in the PATH of the subprocess, ALL tools fail. This is a critical bug because:
- cygpath is a Cygwin-specific utility, not available in standard Git Bash or WSL
- Even when installed, the PATH may not propagate correctly to Claude Code's subprocesses
- There's no fallback mechanism when cygpath is unavailable
- The error affects ALL tools, making Claude Code completely unusable
Suggested fix:
- Implement path conversion without requiring cygpath
- Add fallback mechanism when cygpath is not available
- Use Node.js built-in path utilities instead of external commands
- Detect Windows environment and use appropriate path handling
Impact:
CRITICAL - Claude Code is completely non-functional. No tools work at all.
Workaround:
None found. Manual copy-paste is the only option.
What Should Happen?
Root cause analysis:
Claude Code's internal tools are hardcoded to use cygpath for path conversion on Windows. When cygpath is not available or not in the PATH of the subprocess, ALL tools fail. This is a critical bug because:
- cygpath is a Cygwin-specific utility, not available in standard Git Bash or WSL
- Even when installed, the PATH may not propagate correctly to Claude Code's subprocesses
- There's no fallback mechanism when cygpath is unavailable
- The error affects ALL tools, making Claude Code completely unusable
Suggested fix:
- Implement path conversion without requiring cygpath
- Add fallback mechanism when cygpath is not available
- Use Node.js built-in path utilities instead of external commands
- Detect Windows environment and use appropriate path handling
Impact:
CRITICAL - Claude Code is completely non-functional. No tools work at all.
Workaround:
None found. Manual copy-paste is the only option.
Error Messages/Logs
Steps to Reproduce
Root cause analysis:
Claude Code's internal tools are hardcoded to use cygpath for path conversion on Windows. When cygpath is not available or not in the PATH of the subprocess, ALL tools fail. This is a critical bug because:
- cygpath is a Cygwin-specific utility, not available in standard Git Bash or WSL
- Even when installed, the PATH may not propagate correctly to Claude Code's subprocesses
- There's no fallback mechanism when cygpath is unavailable
- The error affects ALL tools, making Claude Code completely unusable
Suggested fix:
- Implement path conversion without requiring cygpath
- Add fallback mechanism when cygpath is not available
- Use Node.js built-in path utilities instead of external commands
- Detect Windows environment and use appropriate path handling
Impact:
CRITICAL - Claude Code is completely non-functional. No tools work at all.
Workaround:
None found. Manual copy-paste is the only option.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.0.67
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Root cause analysis:
Claude Code's internal tools are hardcoded to use cygpath for path conversion on Windows. When cygpath is not available or not in the PATH of the subprocess, ALL tools fail. This is a critical bug because:
- cygpath is a Cygwin-specific utility, not available in standard Git Bash or WSL
- Even when installed, the PATH may not propagate correctly to Claude Code's subprocesses
- There's no fallback mechanism when cygpath is unavailable
- The error affects ALL tools, making Claude Code completely unusable
Suggested fix:
- Implement path conversion without requiring cygpath
- Add fallback mechanism when cygpath is not available
- Use Node.js built-in path utilities instead of external commands
- Detect Windows environment and use appropriate path handling
Impact:
CRITICAL - Claude Code is completely non-functional. No tools work at all.
Workaround:
None found. Manual copy-paste is the only option.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗