Why doesn't Cursor "see" my code?

Why anm I seeing this all of a sudden?

I notice that the current AddReferral component isn't actually connected to the referral creation logic. Let me see the ReferralsContext.tsx to help connect this properly.
Could you share the contents of src/contexts/ReferralsContext.tsx? This will help me:

L

Hey, is this happening in the Chat or Composer? Ensure your codebase is indexed. Additionally, verify if you’ve added the necessary files to the context, used @codebase, or pressed CTRL + Enter or Cmd + Enter to complete the action.

It’s happening in Composer. I asked it to generate the code, then I asked it to look at the code and generate new functionality (logging) and I get this error. It’s happened a few times during the session.

It seems like it,s not indexing correctly all the time, then?

L

I think this issue might actually be a trivial but derailing glitch: