-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't copy and paste anything #16982
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I got the same issue. It happens sporadically. It's annoying. In my case, paste is working to terminal if copying text from other application. But copy text does not work in terminal. |
Ditto. Incredibly annoying. Paste works. Copy does not (either through Ctrl+Ins or with auto-copy selection). |
I got the same issue on my side even i remove all the key bindings just remain ctrl + c/v for copy paste it still not working.. |
I'm facing the same issue as well with version 1.19.10573.0 |
I have exactly the same issue as described in the original post. It severely affects my productivity. Windows Terminal version Windows build number |
Wait, just to clarify - when y'all are pasting, are you seeing the same, seemingly random text from VsCode? Or is that just a red herring? We did some work recently around here - in preview 1.19 it looks like we started merging stuff:
For additional info: What are you running in the Terminal? CMD / PowerShell / WSL? Vim? |
@zadjii-msft My bad, just to clarify I see the same behavior as OP (quoted below). The VSCode part is not true in my case.
I am sure that both copy and paste are affected. When I select the text in terminal and try to copy, the selection gets reset when I press CTRL + C but I do not see the text I've copied in Windows Clipboard history. This happens to me in both PowerShell and WSL from what I've observed. (PowerShell 7.4.1 and WSL 2 with Ubuntu) I have had this issue for over a week now. |
@XuehaoSun if this ultimately does come down to it being an Intel-specific thing, then I'm definitely going to give you an award for the best bug investigator of the week. I would have never figured that out 😅 Though, @kvietmeier did report something just like this over in #16994, and they have a storagenet.org email on their commits. Maybe theirs was a different root cause after all? |
Update: killing the @XuehaoSun Great find on the Intel work emails!
I waited for a while the first time it happened and kept trying to paste every minute and finally after 5-10 mins, I was able to copy/paste. But then it happened again after 15 mins or so, and then again, I just waited, and it worked. I'll do more observations as it happens and will update if I see anything different. |
I work for Intel - but my GitHub predates that and uses my personal email as the ID/Login. |
👀 |
Update: killing the @atkassen, @XuehaoSun - So, just to confirm, are you saying that the copy/paste issue got resolved when you have killed this process? If so, can you please verify this again and also list the exact steps you've followed to kill it? I had the chance to try this multiple times today when the issue started happening but killing this process didn't work for me as described in my earlier comment #16982 (comment). I was digging just now and found another Intel internal discussion of an employee reporting exactly the same issue posted earlier this week. I don't believe this is a coincidence now. Just to summarize the behavior for me:
So, I believe paste in terminal is still working fine because it looks like the issue is that when you try to copy from Windows terminal, it doesn't go to clipboard in the first place. Pasting from different applications works for me during the time the issue is in effect. |
I also work for Intel, and I'm also seeing this on my work PC. If I kill I need to be pretty quick for it to work though, if I'm too slow and |
My issue also occurs on the windows terminal only. VSCode so far dont have any issue for me. |
@cmellazchy |
We can work on merging #17006, but in the meantime: someone who works at Intel should probably raise this issue with your IT department, so they can figure out whatever is going on with |
For any Intel IT guy who takes a look here, I've submitted an issue |
(From IT) To disable the services that start
|
Disabling "IT Cloud Service" is enough to get the "it-agent" process to not start. |
facing the same issue as well with version 1.19.10573.0 and 1.20.10822.0. also tried the lastest release, still doesn't works. |
same issue, any copy/past from/to any terminal are 1/2 broken, Intel employee, I am |
I tried a workaround from @atkassen, for now, it looks promising. Not sure if it 100% helps, so trying to escalate the issue. |
@filefi If you're not an Intel employee, mind filing a new thread? I think at this point, we've got critical mass in this thread to suggest that everyone here was hitting the same issue with |
I can confirm this is a successful workaround for the copy/paste issues for me.
If I understand correctly, step (2) fixes the issue up to the next reboot and step (1) makes the fix permanent even after reboot. |
For anyone working at Intel and visiting this thread, I DO NOT recommend disabling any IT background services as it might lead to unintended side effects. Relevant Teams at Intel were already made aware of this issue, and they are working to get it resolved. |
Hi, @zadjii-msft |
I don't think we should delete the entire issue because IT doesn't like the workaround. Until there's a resolution (either on the Intel IT side or on the Terminal side) we should keep this open so other Intel employees hitting this can find this issue and avoid opening duplicates. |
copy and paste functionality works properly today since my computer updated to Win11 23H2 22631.3374 last night. I don't know if it is related to this issue. |
Yea, I'm not going to be deleting this thread. It's been highly active - if we delete this, inevitably, another thread will get filed, and folks will once again come to the same conclusion. That being said, obviously, disabling services from your IT department will probably make them mad at you. They should probably fix their tool, so folks don't need to disable it to be productive any more 😉 |
@zadjii-msft Just a wild guess, but does Terminal by any chance My guess is Intel's tool registers itself as a clipboard format listener ( How does Terminal handle a failed |
The current implementation uses the WinRT clipboard APIs and not those Win32 APIs. As it turns out, the WinRT API does exactly what you suspected (I apologize for the low DPI): #17006 on the other hand does what you'd actually expect: I do feel once again validated in my previous statements when it comes to this overall topic. I think I'll spare myself any further comments, however... FYI The above images where generated with an absolutely amazing tool that @wdscxsj showed me recently: API Monitor |
I'm no longer able to reproduce this issue, I think Intel IT must have pushed a fix. Is anyone else from Intel still seeing this? |
I've received information that this issue has been resolved. I also haven't encountered this issue after a whole day of using the terminal. |
Minimal testing indicates this is no longer an issue for me as well. |
In the spirit of #15360 this implements the copy part. The problem is that we have an issue accessing the clipboard while other applications continue to work just fine. The major difference between us and the others is that we use the WinRT clipboard APIs. So, the idea is that we just use the Win32 APIs instead. The feel-good side-effect is that this is (no joke) 200-1000x faster, but I suspect no one will notice the -3ms difference down to <0.01ms. The objective effect however is that it just works. This may resolve #16982. ## Validation Steps Performed * Cycle through Text/HTML/RTF-only in the Interaction settings * Paste the contents into Word each time * Text is plain and HTML/RTF are colored ✅
I haven't encountered this issue couple days. |
I encounter this issue for many days, still annoyed now. |
In the spirit of #15360 this implements the copy part. The problem is that we have an issue accessing the clipboard while other applications continue to work just fine. The major difference between us and the others is that we use the WinRT clipboard APIs. So, the idea is that we just use the Win32 APIs instead. The feel-good side-effect is that this is (no joke) 200-1000x faster, but I suspect no one will notice the -3ms difference down to <0.01ms. The objective effect however is that it just works. This may resolve #16982. * Cycle through Text/HTML/RTF-only in the Interaction settings * Paste the contents into Word each time * Text is plain and HTML/RTF are colored ✅ (cherry picked from commit 5f3a857) Service-Card-Id: 92308708 Service-Version: 1.20
I'm reading this because i was experiencing the same issue. Reading this through made me smile a bit, being the guy in charge of installing "it-agent" for some folks certainly sparked my interest. For those with "it-agent" related issues, please know this software is part of the DLP Suite handling data loss prevention for your business, and there seem to be an issue with their agent inspecting copy/paste operations. Don't kill the process! Please ask your IT Security team to create a ticket and address this bug with the vendor, Proofpoint. Best Regards, the "it-agent" installer. =] |
Windows Terminal version
1.19.10821.0
Windows build number
22631.3296
Other Software
No response
Steps to reproduce
Use the right mouse button or CTRL+c or CTRL+v to copy and paste.
It will expire at random intervals.
During this period the copy and paste functionality of other software works fine.
The copy and paste function returns to normal after about ten minutes of inactivity.
Frequency of occurrence: Every few hours.
Expected Behavior
copy paste behavior
Actual Behavior
No response
The text was updated successfully, but these errors were encountered: