claude-code-tools
claude-code-tools copied to clipboard
tmux-cli launch returns invalid pane identifier ':.' in local mode
Description
When running tmux-cli launch in local mode (inside tmux), it returns an invalid pane identifier :. instead of the expected session:window.pane format.
Steps to Reproduce
- Start a tmux session
- Run
tmux-cli launch "zsh"
Expected Behavior
Should return a valid pane identifier like 3:1.2 and create a visible pane split.
Actual Behavior
$ tmux-cli launch "zsh"
Launched 'zsh' in pane :.
:.
- Returns
:.which is not a valid pane identifier - No visible pane is created
tmux-cli statusstill shows only 1 pane
Workaround
Creating panes with raw tmux works, and other tmux-cli commands work fine:
# Create pane with raw tmux
tmux split-window -h
# These work correctly
tmux-cli send "echo hello" --pane=2
tmux-cli capture --pane=2
tmux-cli status
Environment
- OS: Fedora Linux (kernel 6.17.12)
- tmux version: (standard Fedora package)
- claude-code-tools: installed via
uv tool install claude-code-tools - Python: 3.14
Analysis
The issue appears to be in the create_pane() or format_pane_identifier() methods in tmux_cli_controller.py. The pane might be created in a different window/session than expected, or the identifier formatting is failing.