You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard answers and operator messages never reach agents when tmux pane-base-index is 1 #80
Clarification answers and operator messages typed in the dashboard never reach the agent when the user's tmux config sets pane-base-index 1. The dashboard still marks the clarification done, so the operator believes it was answered while the agent waits forever.
This is the same class of bug as #16, which fixed the launcher and notifier; the dashboard's own target builder was not covered.
Cause
swarmforge/scripts/pack_web.bb (main at f4f5fbc, lines 569–574) hardcodes pane 0:
With setw -g pane-base-index 1 the agent pane is .1, so inject-target! runs tmux send-keys -t swarmforge-specifier:Specifier.0 …, which fails with can't find pane: 0. The only trace is in .swarmforge/dashboard.log:
swarmforge.bb already detects both base indexes (detect-tmux-base-indexes, tmux-agent-target); pack_web.bb does not use them. capture-pane through the same pane-target (agent pane view) is affected the same way.
Reproduce
Put setw -g pane-base-index 1 in ~/.config/tmux/tmux.conf.
get-swarm-forge four-pack && ./swarm, create a New Task.
When the specifier posts a clarification, answer it in Attention.
The answer never appears in the specifier's pane; dashboard.log shows inject failed.
Verified against the live server: tmux -S <sock> send-keys -t swarmforge-specifier:Specifier.0 exits 1 (can't find pane: 0), …:Specifier exits 0.
Suggested fix
Target session:window without a pane index (the agent window has exactly one pane), or reuse the detected pane base index. We applied the first in our fork: ecoinfoai@6dc87c9
Activity