cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Inability to Paste Text from External Sources into Chat Panel

Open vasco opened this issue 1 year ago • 41 comments

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:

  1. Copy text from an external source.
  2. Attempt to paste into the Chat panel using Cmd + V.
  3. 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

vasco avatar Mar 08 '24 19:03 vasco

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).

vasco avatar Mar 08 '24 19:03 vasco

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?

navidkpr avatar Mar 08 '24 23:03 navidkpr

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

MikeBirdTech avatar Mar 18 '24 13:03 MikeBirdTech

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

AlexanderPease avatar Mar 19 '24 19:03 AlexanderPease

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).

vasco avatar Jun 03 '24 17:06 vasco

Nothing to add sorry, thanks for the diagnosis so far. + 1 this is breaking UX

yachal-upson avatar Jul 23 '24 15:07 yachal-upson

+1 running into this

brennanjl avatar Aug 23 '24 14:08 brennanjl

Im having this issue too

marcelorl avatar Aug 27 '24 01:08 marcelorl

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.

ZerkerEOD avatar Sep 02 '24 18:09 ZerkerEOD

+1 running into this. Please help to take a look.

maltoseslope avatar Sep 03 '24 03:09 maltoseslope

  • 1 same issue on macos

sofq avatar Sep 03 '24 05:09 sofq

+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

kstynen avatar Sep 06 '24 06:09 kstynen

So I was able to paste after restarting the IDE.

ZerkerEOD avatar Sep 06 '24 07:09 ZerkerEOD

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)

roderik avatar Sep 18 '24 16:09 roderik

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

sriramarunachalam avatar Sep 18 '24 19:09 sriramarunachalam

Deal-breaker for me as well (MacOS)

hazybitsio avatar Sep 23 '24 09:09 hazybitsio

Same issue is happening to me!

letiescanciano avatar Oct 07 '24 04:10 letiescanciano

same here

yongkangc avatar Oct 14 '24 07:10 yongkangc

this sucks

tydia avatar Oct 17 '24 06:10 tydia

same here

Aronyu127 avatar Oct 20 '24 05:10 Aronyu127

same here

laurentvandelle avatar Oct 22 '24 13:10 laurentvandelle

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

larhou avatar Oct 23 '24 15:10 larhou

Same issue for me on Ubuntu Linux 24. It makes chat very hard to use.

eliheuer avatar Oct 24 '24 19:10 eliheuer

I also have this issue

wwydmanski avatar Oct 28 '24 17:10 wwydmanski

Also happening to me. Reloading the IDE doesn't fix the issue for me nor does remapping paste or paste as text shortcut keys.

vectorfrog avatar Oct 31 '24 13:10 vectorfrog

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

bilthon avatar Oct 31 '24 17:10 bilthon

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.

bilthon avatar Oct 31 '24 17:10 bilthon

I have the same issue here.. Its not great.

Latent-code avatar Nov 03 '24 11:11 Latent-code

Same issue

imharrisonking avatar Nov 07 '24 21:11 imharrisonking

Would it kill to have a right click context menu that can be used to click paste?

eeshankeni avatar Nov 13 '24 05:11 eeshankeni