Cursor's incorrect file focus

In my experience, there have been several instances where Cursor will fail to notify the AI of the newly focused file. This results in changes being made to the previously focused file and not the new file.

Example:

Note; I started noticing this a lot more after I enabled two beta features:

  • Enable 200k Context Window for Claude
  • Shadow Workspaces

Mitigation:
This bug is mitigated if you enable codebase context (submit with codebase)

1 Like

Thanks for reporting - is this still happening?
Also, I’m having trouble reproducing it on my computer - would you feel comfortable taking a video?

I was able to mitigate this by wiping the composer, because this would only happen in long context sessions where the scrollbar became tiny. I’m chalking this up to context awareness issues with long-context chats.

1 Like