fix: v0.10.3 no tmux right-click menus; close split panes
build-deb / Deploy to CT 126 (push) Successful in 19s
build-deb / Lint, test, package (push) Successful in 3m9s
build-deb / Notify on failure (push) Skipped

Right-clicking a pane opened tmux's menu, whose Split entries left a stray
pane next to Claude (and whose Kill entries could end it). Unbind the
right-click menus; add --unsplit and a palette entry that closes extra
panes and keeps Claude's. Closes #52

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WHRLCCdXYm41Qx5kNhehaP
This commit is contained in:
2026-10-13 01:48:04 -04:00
co-authored by Claude Opus 5.5
parent 24d71131e8
commit ab7e127f70
6 changed files with 63 additions and 3 deletions
+14
View File
@@ -1181,3 +1181,17 @@ JSONL
[ "$(posts)" -eq 1 ]
[ "$(cat "$DEVDESK_STATE_DIR/usage-warned")" = 2000018000 ]
}
@test "unsplit closes extra panes and keeps Claude's (#52)" {
start_server
devdesk new alpha
tmux -S "$DEVDESK_SOCKET" split-window -h -t =alpha:claude
tmux -S "$DEVDESK_SOCKET" split-window -v -t =alpha:shell
run devdesk attach --unsplit alpha
[ "$status" -eq 0 ]
[ "$(jq -r .closed <<<"$output")" = 2 ]
[ "$(tmux -S "$DEVDESK_SOCKET" list-panes -t =alpha:claude -F '#{pane_start_command}')" = "$REPO/libexec/devdesk-claude-run" ]
[ "$(tmux -S "$DEVDESK_SOCKET" list-panes -t =alpha:shell | wc -l)" = 1 ]
run devdesk attach --unsplit alpha
[ "$(jq -r .closed <<<"$output")" = 0 ]
}