claude-code-tools icon indicating copy to clipboard operation
claude-code-tools copied to clipboard

`tmux-cli launch "bash"` fails to create pane

Open bxhzzx opened this issue 11 months ago • 1 comments

After debugging, I found that manually running:

tmux split-window -t @0 -h -p 50 -P -F '#{pane_id}' bash

outputs:

size missing

This appears to be related to tmux/tmux#3836.

bxhzzx avatar Dec 24 '25 07:12 bxhzzx

Thanks for reporting this @bxhzzx!

The fix: We now try -l 50% first (the newer syntax), and if that fails, fall back to -p 50 (the older syntax). This should work across all tmux versions.

Our hypothesis: tmux 3.4 removed the -p option for split-window (see tmux/tmux#3836), but it seems to have been restored in 3.5+. By trying both flags with a fallback, we avoid version-specific breakage.

The fix is in commit a68c119. Let us know if you still have issues!

pchalasani avatar Dec 24 '25 14:12 pchalasani