Pasting into terminal uses second to last item in clipboard #10777

Closed
opened 2026-01-31 02:30:01 +00:00 by claunia · 5 comments
Owner

Originally created by @thatchux on GitHub (Sep 25, 2020).

Environment

Windows build number:  10.0.19042.0
Windows Terminal version (if applicable): 1.3.2651.0

Any other software?
Amazon Workspaces

Steps to reproduce

Copy an item from Win 10 host, then copy an item from Win10 workspace, and paste into terminal.

Expected behavior

Last item copied is pasted

Actual behavior

Second to last item on clipboard is pasted into the terminal.

If I paste into another app, ie: Notepad, VSCode, etc., the last item copied is pasted, which is different behavior than Win Terminal

Originally created by @thatchux on GitHub (Sep 25, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19042.0 Windows Terminal version (if applicable): 1.3.2651.0 Any other software? Amazon Workspaces ``` # Steps to reproduce Copy an item from Win 10 host, then copy an item from Win10 workspace, and paste into terminal. # Expected behavior Last item copied is pasted # Actual behavior Second to last item on clipboard is pasted into the terminal. If I paste into another app, ie: Notepad, VSCode, etc., the last item copied is pasted, which is different behavior than Win Terminal
claunia added the Needs-TriageNeeds-Tag-FixResolution-No-ReproNeeds-Attention labels 2026-01-31 02:30:01 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 25, 2020):

The weird thing is, Terminal is just saying "hey system, give me the clipboard".

Is this consistent? Does it only reproduce with Amazon Workspaces? Is it possible to test Workspaces without shelling out too much money?

@DHowett commented on GitHub (Sep 25, 2020): The weird thing is, Terminal is just saying "hey system, give me the clipboard". Is this consistent? Does it only reproduce with Amazon Workspaces? Is it possible to test Workspaces without shelling out too much money?
Author
Owner

@thatchux commented on GitHub (Sep 25, 2020):

I filed a bug to AWS about it as well in case it's on their side; but it's 100% consistent behavior. I'm in the process of transposing ~500 single lines from in the terminal to out; and I need to copy a line out of my notepad on my host in between the copy/paste, and every single time, the terminal is taking what I copy out of notepad. I'll hit [esc] and clear the line, then paste again, and the line I copied from my workspace is pasted.

@thatchux commented on GitHub (Sep 25, 2020): I filed a bug to AWS about it as well in case it's on their side; but it's 100% consistent behavior. I'm in the process of transposing ~500 single lines from in the terminal to out; and I need to copy a line out of my notepad on my host in between the copy/paste, and every single time, the terminal is taking what I copy out of notepad. I'll hit [esc] and clear the line, then paste again, and the line I copied from my workspace is pasted.
Author
Owner

@DHowett commented on GitHub (Oct 23, 2020):

Any response from the AWS folks? We haven't seen any other reports of this with any other software, and we're just using the supported Windows clipboard APIs. :/

@DHowett commented on GitHub (Oct 23, 2020): Any response from the AWS folks? We haven't seen any other reports of this with any other software, and we're just using the supported Windows clipboard APIs. :/
Author
Owner

@thatchux commented on GitHub (Oct 23, 2020):

I'm so sorry I haven't followed up Dustin!
I haven't gotten a response from them, no, but I have been able to reproduce the issue with other applications into and out of their workspaces app.
You can close this for sure.

@thatchux commented on GitHub (Oct 23, 2020): I'm so sorry I haven't followed up Dustin! I haven't gotten a response from them, no, but I have been able to reproduce the issue with other applications into and out of their workspaces app. You can close this for sure.
Author
Owner

@zadjii-msft commented on GitHub (Oct 23, 2020):

Thanks for following up!

@zadjii-msft commented on GitHub (Oct 23, 2020): Thanks for following up!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10777