Cursor ignores folders that I mention

Would love an advice.
I have a large codebase that is indexed by Cursor.
Today I created 5 new files in “libs/newFeature” folder, and I wanted to generate unit tests.
But when I open chat sidebar and enter prompts like “Write unit tests for all the files inside @libs/newFeature folder. Use existing tests located in @tests/libs as an example.”, Cursor ignores all the files in newFeature folder, but one (index.js) - simply because it’s an active tab in editor so it’s added to the context by default.
Maybe I should adjust the prompt? What’s the point of mentions if they don’t work?

I’m also noticing this. I expect adding a folder to be, at the least, a subset of @file-adding all of the files in that folder. It doesn’t seem to add any of them.

We rolled out a fix on the backend. Does it work for you now?

(The problem was that our backend didn’t handle Windows-style backslashes in paths.)

1 Like