Skip to content

Commit d72b4ef

Browse files
committed
revert if wrong
1 parent 973645f commit d72b4ef

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

registry/coder/modules/claude-code/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ resource "coder_env" "disable_autoupdater" {
288288
value = "1"
289289
}
290290

291+
resource "coder_env" "claude_binary_path" {
292+
agent_id = var.agent_id
293+
name = "PATH"
294+
value = "$HOME/.local/bin:$PATH"
295+
}
296+
291297
locals {
292298
# we have to trim the slash because otherwise coder exp mcp will
293299
# set up an invalid claude config

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -euo pipefail
55

66
# Ensure claude binary is in PATH
7-
export PATH="$HOME/.local/bin:$PATH"
7+
#export PATH="$HOME/.local/bin:$PATH"
88

99
BOLD='\033[0;1m'
1010

@@ -44,7 +44,6 @@ function install_claude_code_cli() {
4444
if [ $CURL_EXIT -ne 0 ]; then
4545
echo "Claude Code installer failed with exit code $$CURL_EXIT"
4646
fi
47-
4847
echo "Installed Claude Code successfully. Version: $(claude --version || echo 'unknown')"
4948
else
5049
echo "Skipping Claude Code installation as per configuration."

0 commit comments

Comments
 (0)