Problem Description
The issue_watcher.sh script fails to find the claude command in a WSL environment, even though Claude Code is properly installed and functional.
Environment Details
- Platform: WSL2 (Linux 6.6.87.1-microsoft-standard-WSL2)
- Claude Code Version: 1.0.25 (Claude Code)
- Shell: bash
Symptoms
-
Running claude --version directly in the terminal works and returns 1.0.25 (Claude Code)
-
The script's dependency check fails with:
-
command -v claude returns nothing (empty output)
-
which claude returns nothing
Investigation Results
The claude executable is actually installed at: /home/ubuntu/.claude/local/claude
However, this path is not included in the system PATH, so the script's command -v claude check fails.
Current PATH includes many directories but not /home/ubuntu/.claude/local/:
/home/ubuntu/.local/bin
/home/ubuntu/.nvm/versions/node/v24.2.0/bin
/usr/local/bin
/usr/bin
- Various other system and user paths
- But notably missing:
/home/ubuntu/.claude/local/
Expected Behavior
The script should be able to find and use the claude command when Claude Code is properly installed, regardless of the installation method or environment.
Actual Behavior
The script exits with an error stating that claude CLI is not available even though the command works when invoked directly from the shell.
Problem Description
The
issue_watcher.shscript fails to find theclaudecommand in a WSL environment, even though Claude Code is properly installed and functional.Environment Details
Symptoms
Running
claude --versiondirectly in the terminal works and returns1.0.25 (Claude Code)The script's dependency check fails with:
command -v claudereturns nothing (empty output)which claudereturns nothingInvestigation Results
The
claudeexecutable is actually installed at:/home/ubuntu/.claude/local/claudeHowever, this path is not included in the system PATH, so the script's
command -v claudecheck fails.Current PATH includes many directories but not
/home/ubuntu/.claude/local/:/home/ubuntu/.local/bin/home/ubuntu/.nvm/versions/node/v24.2.0/bin/usr/local/bin/usr/bin/home/ubuntu/.claude/local/Expected Behavior
The script should be able to find and use the
claudecommand when Claude Code is properly installed, regardless of the installation method or environment.Actual Behavior
The script exits with an error stating that
claude CLI is not availableeven though the command works when invoked directly from the shell.