Commit 3d9a7851ef09

Vincent Demeester <vincent@sbr.pm>
2026-01-12 16:15:33
fix(shpool-ssh-wrapper): run claude via login shell for proper PATH
- Use zsh -l -c to run claude command - Ensures PATH and environment are properly initialized - Fixes "claude: command not found" error when using shpool -c
1 parent e406085
Changed files (1)
tools
shpool-ssh-wrapper
tools/shpool-ssh-wrapper/default.nix
@@ -20,7 +20,8 @@ pkgs.writeScriptBin "shpool-ssh-wrapper" ''
   case "$SESSION_NAME" in
       claude/*)
           # Claude Code session - run with Vertex AI environment
-          run_with_command "$SESSION_NAME" "env CLAUDE_CODE_USE_VERTEX=1 CLOUD_ML_REGION=us-east5 ANTHROPIC_VERTEX_PROJECT_ID=itpc-gcp-pnd-pe-eng-claude claude"
+          # Run via shell to get proper PATH and environment
+          run_with_command "$SESSION_NAME" "zsh -l -c 'env CLAUDE_CODE_USE_VERTEX=1 CLOUD_ML_REGION=us-east5 ANTHROPIC_VERTEX_PROJECT_ID=itpc-gcp-pnd-pe-eng-claude claude'"
           ;;
       *)
           # Default: just attach to session with default shell