diff --git a/.claude/skills/sprint-start/scripts/start-sprint.sh b/.claude/skills/sprint-start/scripts/start-sprint.sh index 996602831..3b72b7e4a 100755 --- a/.claude/skills/sprint-start/scripts/start-sprint.sh +++ b/.claude/skills/sprint-start/scripts/start-sprint.sh @@ -1,12 +1,12 @@ #!/bin/bash -# Opens Ptyxis windows for the active sprint teams. +# Opens Ptyxis tabs for the active sprint teams in the CURRENT window. # Auto-starts Claude Code in each tab via tmux. # # Usage: start-sprint.sh [sprint-number] # If omitted, auto-detects the active sprint from the database. # -# Window 1: main (always) -# Window 2: one tab per active team with open tickets +# Assumes the caller is already on main in the current terminal. +# Adds one tab per active team — no duplicate main tab. # # Worktrees are created under .sprint/ (ephemeral, cleaned after sprint close). # Can be called from any directory — resolves paths from the script location. @@ -39,12 +39,9 @@ fi echo "Sprint $SPRINT — teams: ${TEAMS:-none}" -# ── Window 1: main (always) ───────────────────────────────────────── -ptyxis --new-window -d "$REPO_ROOT" -x 'tmux new-session \; send-keys claude Enter' -sleep 0.5 - -# ── Window 2: one tab per active team ─────────────────────────────── -first=true +# ── Open team tabs in the CURRENT window ──────────────────────────── +# No separate main tab — the caller is already on main. +# All team tabs open as --tab in the active Ptyxis window. for team in $TEAMS; do BRANCH="sprint-${SPRINT}/${team}" WDIR="$PARENT/.sprint/sprint-${SPRINT}/${team}" @@ -61,12 +58,7 @@ for team in $TEAMS; do fi fi - if $first; then - ptyxis --new-window -d "$WDIR" -x 'tmux new-session \; send-keys claude Enter' - first=false - else - ptyxis --tab -d "$WDIR" -x 'tmux new-session \; send-keys claude Enter' - fi + ptyxis --tab -d "$WDIR" -x 'tmux new-session \; send-keys claude Enter' sleep 0.3 done