Copy on Select broken when using SSH+Tmux #13562

Open
opened 2026-01-31 03:45:57 +00:00 by claunia · 0 comments
Owner

Originally created by @kellytrinh on GitHub (Apr 20, 2021).

Copy on Select (CoS) broken when using SSH+Tmux. Have done different scenarios and seems exactly this combination has a problem but otherwise ok.

Scenarios

  1. Open WSL on local machine, no Tmux. CoS Works.
  2. Open WSL on local machine, Tmux. CoS Works.
  3. Launch as profile WSL SSH into remote, no Tmux. CoS Works.
  4. Launch as profile WSL SSH into remote, Tmux. CoS does not work
  5. Open WSL on local machine, Tmux. SSH in remote. CoS Works!

Scenario 1 and 2 together show that Copy on Select with the Tmux settings is not causing problems (there is in the .tmux.conf a set -g mouse on which allows for tmux mouse selection and scrollback).

Scenario 3 implies nothing wrong with SSH into machine and WT's Copy on Select.

Scenario 4 (which is step 3 but after running tmux) means it is the combination of SSH+Tmux that breaks WT's Copy on Select. (as the tmux config same as 1 and 2). Also notably; the brokenness is reversible; as soon as leave CTRL+D out of tmux - the Copy on Select works again.

What seems to indicate there is some WT interaction going on is scenario 5. Opening WSL and manually ssh into remote is ok despite (scenario 3) opening via profile (ie commandline wsl.exe ssh ...) breaking CoS

Versions:

Windows Terminal 1.7.1033.0
WSL 1 Ubuntu-18.04
Tmux 2.6

Originally created by @kellytrinh on GitHub (Apr 20, 2021). Copy on Select (CoS) broken when using SSH+Tmux. Have done different scenarios and seems exactly this combination has a problem but otherwise ok. Scenarios 1. Open WSL on local machine, no Tmux. CoS Works. 2. Open WSL on local machine, Tmux. CoS Works. 3. Launch as profile WSL SSH into remote, no Tmux. CoS Works. 4. Launch as profile WSL SSH into remote, Tmux. CoS *does not* work 5. Open WSL on local machine, Tmux. SSH in remote. CoS Works! Scenario 1 and 2 together show that Copy on Select with the Tmux settings is not causing problems (there is in the .tmux.conf a `set -g mouse on` which allows for tmux mouse selection and scrollback). Scenario 3 implies nothing wrong with SSH into machine and WT's Copy on Select. Scenario 4 (which is step 3 but after running `tmux`) means it is the combination of SSH+Tmux that breaks WT's Copy on Select. (as the tmux config same as 1 and 2). Also notably; the brokenness is reversible; as soon as leave CTRL+D out of tmux - the Copy on Select works again. What seems to indicate there is some WT interaction going on is scenario 5. Opening WSL and manually ssh into remote is ok despite (scenario 3) opening via profile (ie commandline `wsl.exe ssh ...`) breaking CoS Versions: Windows Terminal 1.7.1033.0 WSL 1 Ubuntu-18.04 Tmux 2.6
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 03:45:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13562