From ac914b6cb917fe36c58043f0fe6078dce6a1c719 Mon Sep 17 00:00:00 2001 From: didericis Date: Tue, 26 May 2026 15:37:07 -0400 Subject: [PATCH] feat(dashboard): focus right pane after new-agent bringup completes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- claude_bottle/cli/dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/claude_bottle/cli/dashboard.py b/claude_bottle/cli/dashboard.py index 9880c82..b99353c 100644 --- a/claude_bottle/cli/dashboard.py +++ b/claude_bottle/cli/dashboard.py @@ -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,