cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Cursor Chat loses file context, does not automatically use current file context

Open joshuabenson opened this issue 1 year ago • 6 comments

  1. Cursor 0.41.3 no longer automatically sends the context of the current open file to Chat
  2. Mac OS 15.0 (24A335) M1 Max MBP
  3. Open Chat and then open a file in Cursor. Before updating Cursor the editor always automatically added the Current File as the context. Now, it usually is not set as the context. Screenshot 2024-09-29 at 2 20 05 PM

joshuabenson avatar Sep 29 '24 19:09 joshuabenson

Its happening to me as well it seems that the idexing is falling to a lot of users image

ascanio avatar Sep 30 '24 11:09 ascanio

Its happening to me as well it seems that the idexing is falling to a lot of users image

Thanks for verifying its not just me lol. I'll probably cancel my subscription and switch back to VSCode + Continue if this doesn't get fixed soon. Getting the context setup correctly is an important feature Cursor offers over competitors but its been broken in the latest version.

joshuabenson avatar Sep 30 '24 18:09 joshuabenson

I'm having a similar issue. I open a folder of code files. Select a file to edit. Open the side panel and ask a question about the current open file. It has the context correct for the question, but the answer with generated code goes to a "script" file and not my currently open file. If I click apply, it creates a new folder and new file in my current directory and applies the changes to that new blank file.

joshkerr avatar Oct 13 '24 18:10 joshkerr

same issue

aispin avatar Nov 02 '24 02:11 aispin

I'm having the reverse issue.

If I hit ⌘L in a file (not highlighting anything), it automatically uses the file as context, where I don't want it to.

Previously there was a setting I could toggle where it would use "no context by default", and it would only use the file as context if I submitted the chat with ⌥ + ↩.

Now this setting is gone, and it no longer shows the ⌥ + ↩ option in the chat window.

So every time I open chat with ⌘L, I need to manually x out the file from the chat window.

Was this setting/functionality depreciated? If so, can we bring it back?

This thread indicates that people have different desires for how they want their chat to interact with the context by default.

Version: 0.43.5

Culpable avatar Dec 01 '24 04:12 Culpable

Same issue here — I always have to manually set the context.

A third-party GPT app sees the files I have open in Cursor (via tags), but Cursor doesn’t.

  • Thanks, this functionality was added in one of the latest updates by the developers.

RasVadim avatar Apr 23 '25 13:04 RasVadim

Same issue. Can someone please take a look at this?

bit-surgeon avatar May 01 '25 01:05 bit-surgeon

work around for now, while you're on the target file press CTRL + A + L, this will bring cursor chat with current file as context

adnanx-ecosmob avatar Jun 03 '25 13:06 adnanx-ecosmob

Same issue. Can someone please take a look at this?

Maybe cursor don't want to decide whether to set a new context or follow the last used one.

I use Command+N as an alternative solution.

xyf7 avatar Jul 08 '25 05:07 xyf7

Anyone still working on this? I'm surprised this bug hasn't been addressed yet.

joshuabenson avatar Jul 20 '25 04:07 joshuabenson

Not sure why it stopped working, but creating a new chat fixed it for me.

spencercolaco avatar Jul 22 '25 16:07 spencercolaco

I am having the same issue since a week now. I have cancelled on my subscription. can anyone suggest a good alternative.

While I am seeing this issue on Mac M1. My mac m2 pro is still away from this mess thing as I have not updated to the latest version.

dhaneshmarch avatar Jul 29 '25 14:07 dhaneshmarch