From 4249a79aa612c61ef915b6d5e9fbe1103d47e933 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 5 Apr 2026 08:51:46 +0200 Subject: [PATCH] fix(skills): open sprint tabs in current window, no duplicate main tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../sprint-start/scripts/start-sprint.sh | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) 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