microsoft / microsoft/terminal

Copy pasting from WSLg stopped working lately

Open
#14,737 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-TerminalControl Issue-Bug Needs-Repro Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.15.3466.0

### Windows build number

10.0.22000.1455

### Other Software

Microsoft store WSL + WSLg:
C:\Users\ophers>wsl --version
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.1455

Clink: v1.4.13.0066c6

### Steps to reproduce

1. I open Eclipse CDT (latest) from within a WSL terminal window (running CentOS 7).
2. I copy text from Eclipse.
3. Trying to paste to the WSL terminal window fails - nothing pasted.
4. Also nothing pasted to ANY Windows Terminal tab I open (CMD, Powershell, etc.),
neither to a new Terminal window I open.

### Expected Behavior

Text is pasted to the terminal window.

### Actual Behavior

Nothing pasted.
#### But, it will paste to:
1. The find box of Windows Terminal
![image](https://user-images.githubusercontent.com/11839190/214826717-c09756f2-cae9-48b3-a162-79e42a2bba99.png)
2. To a `conhost.exe` windows started from windows "Run" bar.
![image](https://user-images.githubusercontent.com/11839190/214826991-5dcd9819-df97-45c5-aba6-861e99a03c31.png)
3. To `Notepad`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with Windows Terminal 1.15.3466.0, Windows 10.0.22000.1455, WSLg, and Eclipse CDT as described. Compare pasting into WSL, CMD, PowerShell, the find box, conhost.exe, and Notepad. Done means copied text pastes into Windows Terminal tabs as expected without regressing the working destinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.