Cursor Not Seeing Files I @

I’m using agent mode (which I love) and I @ files for the AI to see, but very often it searches for the files even though their in the @? And it also oftentimes can’t find a file even though I’ve added it to the context.

Hey, does this also happen in a new Composer session?

I’ll have to test it out. I am noticing that more now than before, I have to start a new composer session because the AI just hangs on generating. It’s usually after a mid-length conversation as I try to start a new composer session when I move on to a new issue i’m resolving in the code

Hey, we believe we may have a fix for the “Generating…” bug, but we have noticed people reporting that the AI cannot see the files they @ after a while.

Does it take a few messages before the AI loses the context, or have you had cases where it happens immediately, in a fresh composer session?

In order to get around this, a little hack that I do, is I create a terminal command to look for all source files, in my case it’s html, js, and json… and include the file name at the top, and the contents below - and cat it to the pasteboard.

find /mydirectory/src/ -type f ( -name “.js" -o -name ".json” -o -name “*.html” ) -exec sh -c ‘echo -e “\n\n{}\n\n”; cat “{}”’ ; | pbcopy

Something like that. (I just asked Claude to do a command for me). So each time time that I paste a large question or edit, I say “here is the latest…” and go to terminal, push the up key to run the command again, and then paste the context each time manually.

I experience the simillar issue.
Some files just disapear from Cursor visability.
In the screeenshot I clicking router.ts and nothing happened, I cannot add it. I happens randomly with different files.

Also sometimes Claude agent stops see it during generation and after it I cannot add the file too.

I removed and rebuild project index.
Is there any other ways to reset something to make it works???
I experience this for a week already.

Version: 0.46.9
VSCode Version: 1.96.2
Commit: 3395357a4ee2975d5d03595e7607ee84e3db0f20
Date: 2025-03-05T08:14:11.312Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0