Cursor is not seeing Context in Chat

Describe the Bug

I recently updated Cursor. Prior to update I was able to paste code into the chat and it was treated as text. Now when I paste code into the chat, it is converted into Context (ie index.html lines 1-59) that seems to be invisible to the AI. This is blocking me from being able to “show” the chat the necessary code or files.

Steps to Reproduce

Paste any code into the chat, and type generic message related to the code context. The AI cannot see/read it.

Expected Behavior

I should be able to paste code (even if it’s converted to context) that the AI can read

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.44.10
VSCode Version: 1.93.1
Commit: ae296fde8115b123d8ce516cdfedf697fc577660
Date: 2025-01-02T09:19:53.599Z (14 hrs ago)

Additional Information

N/A

Does this stop you from using Cursor

Yes - Cursor is unusable

2 Likes

It might be an issue with the codebase indexing.

Try resyncing the index in SettingsFeatures.

Then restart Cursor and try again.

If that doesn’t work, see if manually @ing the file fixes the issue.

1 Like

I have this issue all the time on mac and windows. Sometimes it works for new chats or composers and then the functionality completely breaks and I have to copy and paste the code from every context into the prompt textbox.

I have the same issue sometimes.

When that happens, I just Ctrl Shift P > Copy Relative Path of Active File

Then in Composer:


I paste the file/path/name.ext and tell it what line.

It doesn’t happen often, but when it does, this is what I do.


Also, the command @codebase is no longer available, but you can literally tell it to scan the codebase.

That should resolve the issue for you.

Version: 0.44.9
VSCode Version: 1.93.1
Commit: 316e524257c2ea23b755332b0a72c50cf23e1b00
Date: 2024-12-26T21:58:59.149Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.12.7-arch1-1

I had a similar problem a few days ago:

same issue here

Hey, we’ve had a couple of reports of this, and I’ve raised it with the team to look into.

If you start a new, fresh composer, is it still unable to see the files like this?

At least in my case, the issue is resolved when a new chat window is opened, but the problem starts again later in the conversation.

I ended up reverting to the previous version of Cursor, but I remember starting a fresh composer and still having the issue.

Same problem. It just keeps saying it doesn’t see any file or code attached. Which is annoying because it’s just chewing through my credits.

I deleted the index and re-sync’d - seemed to work. @ing did not work on its own.

Great to hear you solved it :slight_smile:

over the last few days both the “+” add context button function and ctrl+shift+L of files hadn’t been working (context wasn’t seen by LLM)

issues started after a significant number of messages

a brute force workaround is unformatted paste (ctl+shift+v) but once I also did the settings resync and restart it seems to have fixed it as well

1 Like

Yes, but I find myself having to re-index the whole code base multiple times a day which seems to affect the AI’s ability to remember what we were working on.

And there are times it still doesn’t work after this.