PHP codebase, I know that there are 26 files that implement a certain trait but let’s pretend I don’t know this and I want the Cursor AI to find them. So in a chat window or in the composer window (same behavior in both) and using @codebase or @folder:
Prompt: Give me a list of all the files that use the X trait. Only the file names with relative path, without file previews. Keep in mind that there are several of these files, so please do a thorough search.
Result: 7 files.
Prompt: There are more files that use the X trait. You can do better. Search again.
Result: 13 files.
Prompt: Are you sure? I know there are more class files that include the trait. Search in all files in all subdirectories please.
Result: 24 files.
Prompt: Almost there. There are a couple more of files that implement the trait. Try again.
Result: 26 files, finally.
Is this expected? Is there a bug somewhere? Am I doing something wrong?
In case it helps: Cursor for Windows but opening a codebase from WSL.