Cursor is not aware of code context from subdirectories unless subdirectory workspace is opened

When using the o1-preview model in Chat I’m not able to get the response to consider my file, despite @ mentioning it in the chat.

Note below how I give it an exact class by the name in the @ mention, and it gives me a response implying that the class does not exist yet.

1 Like

Same result for Claude 3.5…I think something is wrong with the code context detection.

It might be a problem with my code indexing…investigating.

The file for which the context is quite deep into a subdirectory. The file path is a <root>/2gp-packages/dispatch-central/force-app/main/default/classes/<file> - when I open a Cursor workspace in dispatch-central it picks up context just fine.

No difference after re-indexing, not a big deal since I can open a workspace in the sub directory and it works okay.