fix: pane indices match pane-base-index=1

tmux.conf sets pane-base-index 1, but dev-session.sh was
referencing panes starting at .0. All splits and send-keys
silently failed, leaving a single empty pane with no dashboard.
This commit is contained in:
Alexander Whitestone
2026-03-15 07:58:41 -04:00
parent 973411e3b5
commit 36127433e7

View File

@@ -23,30 +23,30 @@ tmux send-keys -t "$SESSION:1" "hermes" Enter
tmux new-window -t "$SESSION" -n "timmy-loop" tmux new-window -t "$SESSION" -n "timmy-loop"
# Vertical split: left | right # Vertical split: left | right
tmux split-window -h -t "$SESSION:2.0" tmux split-window -h -t "$SESSION:2.1"
# Horizontal split on left: top-left / bottom-left # Horizontal split on left: top-left / bottom-left
tmux split-window -v -t "$SESSION:2.0" tmux split-window -v -t "$SESSION:2.1"
# Pane map: # Pane map (pane-base-index = 1):
# 0 = top-left → Loop # 1 = top-left → Loop
# 1 = bottom-left → Hermes Chat (in Timmy dir) # 3 = bottom-left → Hermes Chat (in Timmy dir)
# 2 = right → Status Dashboard # 2 = right → Status Dashboard
# Set pane titles # Set pane titles
tmux select-pane -t "$SESSION:2.0" -T "Loop" tmux select-pane -t "$SESSION:2.1" -T "Loop"
tmux select-pane -t "$SESSION:2.1" -T "Chat" tmux select-pane -t "$SESSION:2.3" -T "Chat"
tmux select-pane -t "$SESSION:2.2" -T "Status" tmux select-pane -t "$SESSION:2.2" -T "Status"
# Resize: give right pane ~40 cols for status # Resize: give right pane ~40 cols for status
tmux resize-pane -t "$SESSION:2.2" -x 45 tmux resize-pane -t "$SESSION:2.2" -x 45
# Start processes # Start processes
tmux send-keys -t "$SESSION:2.0" \ tmux send-keys -t "$SESSION:2.1" \
"export PATH=\"$HOME/.local/bin:$HOME/.hermes/bin:/usr/local/bin:\$PATH\" && $HOME/.hermes/bin/timmy-loop.sh" Enter "export PATH=\"$HOME/.local/bin:$HOME/.hermes/bin:/usr/local/bin:\$PATH\" && $HOME/.hermes/bin/timmy-loop.sh" Enter
tmux send-keys -t "$SESSION:2.2" \ tmux send-keys -t "$SESSION:2.2" \
"$HOME/.hermes/bin/timmy-status.sh" Enter "$HOME/.hermes/bin/timmy-status.sh" Enter
tmux send-keys -t "$SESSION:2.1" \ tmux send-keys -t "$SESSION:2.3" \
"cd ~/Timmy-Time-dashboard && hermes" Enter "cd ~/Timmy-Time-dashboard && hermes" Enter
# Focus: start on hermes window # Focus: start on hermes window