Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

fix(tmux): fix 4 bugs in spawnInTmux and executeTmuxCommand#172

Open
morecup wants to merge 2 commits intoslopus:mainfrom
morecup:fix/tmux-spawn-bugs
Open

fix(tmux): fix 4 bugs in spawnInTmux and executeTmuxCommand#172
morecup wants to merge 2 commits intoslopus:mainfrom
morecup:fix/tmux-spawn-bugs

Conversation

@morecup
Copy link

@morecup morecup commented Feb 14, 2026

  1. Move -P -F #{pane_pid} before the shell command (tmux requires flags before the command argument in new-window)
  2. Skip adding -t target in executeTmuxCommand when -t is already present in the command args (prevents duplicate -t flags)
  3. Remove shell-style quoting from -e KEY=value (spawn bypasses shell, so quotes become literal characters in the value)
  4. Prefix command with 'exec' so the shell is replaced by the actual process, making pane_pid match the real process PID

morecup added 2 commits February 14, 2026 05:16
1. Move -P -F #{pane_pid} before the shell command (tmux requires
   flags before the command argument in new-window)
2. Skip adding -t target in executeTmuxCommand when -t is already
   present in the command args (prevents duplicate -t flags)
3. Remove shell-style quoting from -e KEY=value (spawn bypasses
   shell, so quotes become literal characters in the value)
4. Prefix command with 'exec' so the shell is replaced by the
   actual process, making pane_pid match the real process PID
- Fix -t session flag being appended after shell command in new-window,
  causing tmux to pass it as part of the command string (process crashes)
- Move -t before shell command arg and skip auto-append in executeTmuxCommand
- Increase webhook timeout from 15s to 60s for slow MCP/project init
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant