fix(skills): open sprint tabs in current window, no duplicate main tab
start-sprint.sh now uses --tab for all teams (opens in active Ptyxis window) instead of --new-window. No separate main tab — the caller is already on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user