Cursor shows incorrect filename on hover in composer

An incorrect file is shown when hovering over the filename in composer > Search files by name.

Here is a screenshot.

The same behavior happens even after restarting Cursor and my laptop.

Using Cursor version: 0.44.11 (VSCode Version: 1.93.1), and running it on MacOS version 15.2 (24C101).

This does not stop me from using Cursor, but is very annoying when manually adding context to composer in a larger project, where there are multiple files with the same name, but different path. A quick fix would be really appreciated!

1 Like

Hey, am I correct in understanding that you hovered over a file with the .rb extension, and it points to a .js file? Also, if you didn’t know, you can drag and drop from Explorer into the Composer window.

Yes. For me, the hover tooltip almost never corresponds to the correct file (and always it’s the tooltip that’s incorrect, not vice versa). And I didn’t know, thanks for the tip!

Thanks, I’ll check that. Are you using any framework?

I’ve noticed this at least in ruby on rails projects.
btw, I just noticed, that it happens only when at the start of the search the added subheader is visible. The tooltip results are not completely incorrect; they are just not correct, but instead show the path of a list item, with a 1-3 offset

1 Like

Actually, forget that. I just found multiple cases where the tooltips are not simply explainable by this offset logic. but the tooltips seem to be corresponding to the search query

1 Like