Commit f5bd61f71abf

Vincent Demeester <vincent@sbr.pm>
2026-01-12 16:43:24
fix(shpool-ssh-wrapper): use full path to claude binary
The hm-session-vars.sh file doesn't set PATH, only environment variables. Since claude-vertex runs in a non-login shell context via shpool, we need to use the full path to the claude binary. Claude is installed at /etc/profiles/per-user/vincent/bin/claude via home-manager, so use that path directly instead of relying on PATH. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f6ba6e6
Changed files (1)
tools
shpool-ssh-wrapper
tools/shpool-ssh-wrapper/default.nix
@@ -6,9 +6,8 @@ let
     export CLAUDE_CODE_USE_VERTEX=1
     export CLOUD_ML_REGION=us-east5
     export ANTHROPIC_VERTEX_PROJECT_ID=itpc-gcp-pnd-pe-eng-claude
-    # Source user environment to get PATH
-    source /etc/profiles/per-user/vincent/etc/profile.d/hm-session-vars.sh
-    exec claude
+    # Use full path since PATH isn't set in non-login shells
+    exec /etc/profiles/per-user/vincent/bin/claude
   '';
 in