An error occurred while fetching issues.
Tmux integration sometimes fails to start when connecting to remote server
Hi!
I'm using tmux integration mode to connect to remote server running tmux. Sometimes it refuses to connect with the following message: Reason: %begin with empty command queue
. I'm able to reproduce it with this steps:
- Close all tabs, quit iTerm2 and launch it again - it now has a single tab.
- Try to connect to remote server with the command
ssh foo -t "tmux -CC attach -t foo || tmux -CC new -s foo"
. (tmux session was not started before) - iTerm creates a new window for the session (according to my settings) with a single tab.
- Type
Ctrl+D
to quit the remote shell. It will end remote tmux session and iTerm will disconnect. - Try to connect again with the same command.
- You'll get the alert with
Reason: %begin with empty command queue
. - Subsequent attempts to connect may fail at random.
$ ssh imp -t "tmux -CC attach -t imp || tmux -CC new -s imp"
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Detached
Connection to imp closed.
$ ssh imp -t "tmux -CC attach -t imp || tmux -CC new -s imp"
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Detached
show-window-options -g aggressive-resize
refresh-client -C 160,75; list-windows -F "#{window_id} #{window_layout}"
** tmux mode started **
Command Menu
----------------------------
esc Detach cleanly.
X Force-quit tmux mode.
L Toggle logging.
C Run tmux command.
Detached
%begin 1451118518 14 1
%end 1451118518 14 1
%exit
Connection to imp closed.
- iTerm2 version: Build 2.1.4
- remote tmux version: 2.1
- OS version: 10.9.5
- ~/Library/Preferences/com.googlecode.iterm2.plist
- Attach a debuglog.txt.gz