claude-code-tools
claude-code-tools copied to clipboard
`tmux-cli launch "bash"` fails to create pane
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.
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!