Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit ef589ba

Browse files
committed
cd manually
1 parent f02a63d commit ef589ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

claude-code/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ resource "coder_app" "claude_code" {
230230
echo "Attaching to existing Claude Code tmux session." | tee -a "$HOME/.claude-code.log"
231231
tmux attach-session -t claude-code
232232
else
233+
cd ${var.folder}
233234
echo "Starting a new Claude Code tmux session." | tee -a "$HOME/.claude-code.log"
234-
tmux new-session -s claude-code -c ${var.folder} "claude --dangerously-skip-permissions | tee -a \"$HOME/.claude-code.log\"; exec bash"
235+
tmux new-session -s claude-code "claude --dangerously-skip-permissions | tee -a \"$HOME/.claude-code.log\"; exec bash"
235236
fi
236237
elif [ "${var.experiment_use_screen}" = "true" ]; then
237238
if screen -list | grep -q "claude-code"; then

0 commit comments

Comments
 (0)