Copy/Paste into Chat and Composer Is Broken

Upgraded to the latest version available today, and I can no longer copy/paste into the chat window or composer. Restarted application multiple times, no dice.

Version: 0.40.1

VSCode Version: 1.91.1

Commit: 58b91712431381a1b75817cd3437cee35dddcb30

Date: 2024-08-24T02:52:24.035Z (2 days ago)

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 arm64 23.3.0

1 Like

Hi @soothaa ,

Out of interest, does this only happen if the content you are pasting in has spaces or non-alphanumeric text at the start of the lines?

I have experienced this behaviour for a while:

1 Like

Interesting. I wasnā€™t trying to, but maybe thereā€™s something funky hidden. If I copy just a word or two itā€™s working.

3 Likes

Pasting into composer also hasnā€™t been working for me with multi line content. Havenā€™t fully tried it on 0.40.1 yet though

2 Likes

I know @shaoruu was interested in getting a reproduceable example, I havenā€™t had one recently so couldnā€™t assist, but if you have any non-sensitive example content you could share with him, I think he would be grateful:

2 Likes

I have the same problem. Copy and paste suddenly stop working inside Cursor. Evening clicking Copy/Paste in the Edit menu does not work.

I donā€™t seem to be able to attach a text file, so trying to dump the text here

My json object now has a property of 'pinned' - if the value is 1 I want the entry pinned to the top of my datatables, regardless of user sorting options. But only if the filtering would display it normally.

I'm told this link contains the proper way of doing this: @https://datatables.net/reference/option/orderFixed 

I only want a maximum number of 2 pinned items actually pinned. The way we should determine is by picking the items that have the highest row.micrograde. Items that are not selected to be the 2 selected at the top should be saved off into another list. When we update or change the filtering/sorting, we need to reevaluate which 2 items are displayed.

The end goal is that there are always 2 special items at the first 2 entries of the datatable that match the filtering appropriately.

Please provide a complete and comprehensive solution for this, accounting for all the javascript functions and requirements. Once completed, please recheck your work and critique it, and make a final update pass based on the critique.

Edit: Confirming copying/pasting from above does not work

1 Like

@shaoruu - here is another users example of text that cannot be copy/pasted into chat :point_up_2:t5:

Iā€™m also experiencing this issue when pasting the following JSON into the composer -

{
    "attributes": {
        "type": "st_patch_stg__Site__c",
        "url": "/services/data/v37.0/sobjects/st_patch_stg__Site__c/a2LHr000001s4wRMAQ"
    },
    "Id": "a2LHr000001s4wRMAQ",
    "st_patch_stg__Location__Latitude__s": 30.263961,
    "st_patch_stg__Location__Longitude__s": -97.744801,
    "st_patch_stg__Site_Status__c": "Active",
    "st_patch_stg__Site_Type__c": "EV Charging Station",
    "st_patch_stg__State__c": null,
    "st_patch_stg__County__c": null,
    "st_patch_stg__Full_Address__c": "100 Congress Ave <br>Austin,   78701",
    "st_patch_stg__City__c": "Austin",
    "Country__c": "United States",
    "demo_Date__c": "2024-04-30",
    "CreatedDate": "2023-11-14T01:25:35.000+0000",
    "Name": "100 CONGRESS / STATION 1"
}

I have the same problem with composer.

What am I doing? I create a markdown file, write a prompt and copy paste it into composer.

Itā€™s worth noting that if I open command palette, select ā€œDeveloper: Reload Windowā€ , pasting works until I run the prompt. After that, if I create new composers, pasting wonā€™t work.

1 Like

Iā€™ve had the same issue for a few weeks. Iā€™ve noticed I canā€™t copy & paste blocks of code into the Composer, but I can sometimes paste single lines of code.

Why has the creator of Cursor not even responded?

Iā€™ve notified the devs about this issue, hopefully they can find a solution!

Same problem. Its now November whats the deal?

Still seeing this bug, but more specifically I canā€™t paste in something that has a url that is @-mentioned. Text without URLs works, even with hyperlinks to files.

I canā€™t believe I had to create an account here only to report that FREAKING CTRL+V is not working in a simple textarea. :anger:

But yes, itā€™s not possible to paste anything thatā€™s not regular text.
I was able to paste links, files or anything else, but you cant do it with regular text.

1 Like

same hereā€¦ unable to paste text from one window to the nextā€¦ and the Add to Composer feature or Add to Chat neither of them work.

Hey, are you using a more advanced feature in Cursor, like Remote SSH or DevContainers?

My guess is the cause here is that, when you paste a snippet of code from a file, the Composer/Chat is smart enough to see where you copied it from, and reference the snippet in the file directly, not just drop in the raw code. However, if the editor is failing to link the snippet to the file, that may be why itā€™s not showing up!

This is still very much an issue. Occasionally trying to paste a URL (especially if itā€™s copied from a Chat window into a Composer window) will break the ability to paste into Composer. Restarting the application doesnā€™t fix it.

Current solution is to delete ~/.config/Cursor/User/History and restart the app. Pasting works again, but still canā€™t paste a URL that begins with @.

Ah, pasting a URL with @ might cause issues, as we use @ for the context tagging (as Iā€™m sure you know!).

Iā€™ll add this to our backlog to look into, but for now, you may have better luck using CMD+Shift+V to paste, as this will stop Cursor from trying to parse our the URL to be read as context, and instead paste it as a normal string (if that is what you are trying to do).