Cursor will reference content from non-existent documents

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor will reference content from non-existent documents.

Steps to Reproduce

Use Cursor to open any folder, press Ctrl N to create a New Text File, then enter any content, make it slightly longer, and include multiple lines.
Next, select all and cut the entered text, then close this Untitled document. Paste the cut content into the chat input box.
Expected: Paste the cut text.
Actual: A document content reference was pasted (even though the referenced document has been deleted).
This situation is very common. Typing directly in the chat input box makes it easy to accidentally trigger sending, wasting my quota. Therefore, I often create a new temporary document, type out what I want the Agent to do, and then paste it into the chat input box. This current situation (referencing content in a non-existent file) is clearly incorrect.

Screenshots / Screen Recordings

cursor_issue.gif

Operating System

Windows 10/11

Version Information

Version: 2.4.21 (system setup)
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a bug related to how clipboard content is handled for untitled documents. When you cut text and close the file, the clipboard keeps a reference to the file instead of plain text.

Workaround: use Ctrl+Shift+V (paste as plain text) instead of normal paste. That should insert the real text without creating the wrong @ mention.

I’ve passed this along to the team.