feat(dashboard): focus right pane after new-agent bringup completes
test / unit (pull_request) Successful in 18s
test / integration (pull_request) Successful in 1m10s

The new-agent (`n`) flow's tmux branch was leaving keyboard
focus in the dashboard pane after compose-up + provision
finished and claude landed in the right pane — same situation
as Enter re-attach before its `focus_right_pane` fix. The
operator just spun an agent up; they want to type at it.

Pass `focus_right_pane=True` to `_attach_in_tmux` from the
new-agent flow. `tmux select-pane` runs after the respawn.
This commit is contained in:
2026-05-26 15:37:07 -04:00
parent 1a1ba6abd5
commit ac914b6cb9
+3
View File
@@ -1169,9 +1169,12 @@ def _new_agent_flow(
raise
if routed:
bottles[plan.slug] = (cm, bottle, identity)
# Move tmux focus to the right pane — the operator
# just spun this agent up, they want to type at it.
return _attach_in_tmux(
stdscr, bottle, plan.slug,
resume=False, tmux_state=tmux_state,
focus_right_pane=True,
)
# Launch step writes to stderr (image build, network create,