aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclaude-templates/bin/ai2
1 files changed, 1 insertions, 1 deletions
diff --git a/claude-templates/bin/ai b/claude-templates/bin/ai
index a167174..63dc2e9 100755
--- a/claude-templates/bin/ai
+++ b/claude-templates/bin/ai
@@ -63,7 +63,7 @@ attach_session() {
# Create a window in the ai session, launch claude, return window id.
create_window() {
local dir="$1" name="$2" wid instructions
- wid=$(tmux new-window -t "$SESSION" -n "$name" -c "$dir" -P -F '#{window_id}')
+ wid=$(tmux new-window -a -t "$SESSION:{end}" -n "$name" -c "$dir" -P -F '#{window_id}')
sleep 0.1
instructions=$(build_instructions "$name")
tmux send-keys -t "$wid" "$CLAUDE_CMD \"$instructions\"" Enter