Inability to Paste Text from External Sources into Chat Panel
Description:
I'm unable to paste text into the cursor.sh IDE's Chat panel on a Mac M2 with a Pro license when the text is copied from an external source. This issue disrupts workflow by preventing easy integration of external information into the IDE.
Steps to Reproduce:
- Copy text from an external source.
- Attempt to paste into the Chat panel using Cmd + V.
- Pasting fails with no text appearing in the Chat panel.
Expected Behavior: The IDE should allow pasting text into the Chat panel from any source.
Actual Behavior: Text from external sources cannot be pasted into the Chat panel.
Suggested Solution: Enable support for pasting from the external clipboard into the Chat panel.
System Details:
- IDE Version:
- Version: 0.29.1
- VSCode Version: 1.86.2
- Commit: a962ca5721e80876320cb6a3a500cbc1cf679150
- OS: Darwin arm64 22.6.0
There are also use cases where you want to copy and paste text from internal sources that don't work (the Cmd + Shift + L is fantastic for several/most use cases but it doesn't replace the normal copy-past flow).
Hi,
Looking into this.
I haven't been able to reproduce this bug on my side yet.
There is an existing (non-deterministic) bug, where copy / paste stops working in chat, which usually is fixed if you restart cursor.
Does the issue persist if you restart cursor?
Hi @navidkpr
I am experiencing the same issue. I am only able to paste once into the chat window and then it is unable to. If I run Developer: Reload Window it sometimes allows me to paste once, but sometimes not at all. I'm also unable to select text within chat generated code blocks. I can click the copy button to copy all of the text, but when I want a portion of it (for example, to exclude "...rest of your code...") it does not work.
Here's the about info:
Version: 0.29.1
VSCode Version: 1.86.2
Commit: a962ca5721e80876320cb6a3a500cbc1cf679150
Date: 2024-03-02T20:35:34.996Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0
Same issue. I love Cursor, but this makes it unusable. OSX 13.6.3.
Version: 0.29.1 VSCode Version: 1.86.2 Commit: a962ca5721e80876320cb6a3a500cbc1cf679150 Date: 2024-03-02T20:35:34.996Z Electron: 27.2.3 ElectronBuildId: undefined Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 22.6.0
It is just providing a quick update. It appears there's a UX problem. It seems that using Cmd+V triggers the same action as Cmd+Shift+L, causing the text block to end up outside the visible area.
I would prefer if Cmd+V pasted the text in the text area at the cursor position while retaining Cmd+Shift+L as is. This unusual behavior (not knowing if Cmd+V will work as a normal Cmd+V or if it will work as Cmd+Shift+L), makes me have to use external tools where I passed the code first, and then, from the external code tool, I copy the code to the cursor's prompt text field to ensure a normal Cmd+V operation.
@navidkpr Yes the issue persists after a restart, it has some relation with the number of lines you are copying (I observed that copying multiple lines leads to this problem).
Nothing to add sorry, thanks for the diagnosis so far. + 1 this is breaking UX
+1 running into this
Im having this issue too
Just started happening to me also. Was working one moment then nothing. After checking and seeing it works in other applications I figured it was Cursor. I can't even paste into the IDE either.
+1 running into this. Please help to take a look.
- 1 same issue on macos
+1 same issue here, unable to paste into chat window:
Version: 0.40.4 VSCode Version: 1.91.1 Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870 Date: 2024-09-05T02:52:05.660Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin x64 23.6.0
So I was able to paste after restarting the IDE.
Ok, i'm having the same issue, i added a new shortcut cmd-shift-v to paste as text, and that works (main IDE window)
Ok, i'm having the same issue, i added a new shortcut cmd-shift-v to paste as text, and that works (main IDE window)
This didnt work for me. I am having the same issues. Restarting IDE also didnt help
Deal-breaker for me as well (MacOS)
Same issue is happening to me!
same here
this sucks
same here
same here
same here
should be possible to copy code from a file and paste it into the chat prompt area
currently pasted code it is added to the context area
Same issue for me on Ubuntu Linux 24. It makes chat very hard to use.
I also have this issue
Also happening to me. Reloading the IDE doesn't fix the issue for me nor does remapping paste or paste as text shortcut keys.
This is happening to me as well.
Version: 0.42.4
VSCode Version: 1.93.1
Commit: b1e87884330fc271d5eb589e368c35f14e76dec0
Date: 2024-10-29T17:17:29.347Z (2 days ago)
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
I tried restarting cursor and the issue persists even after a reboot
Ok it seems related to the length of the copied text. I managed to copy & paste a longer instruction by splitting it into chunks of a few words.
I have the same issue here.. Its not great.
Same issue
Would it kill to have a right click context menu that can be used to click paste?