Context is emptied after each response

Up until just a couple of hours ago, the files I had added to the context would remain after the model is done responding to my message and updating the code. However, now, the context is empty, aside from the file I currently have open, after each message.

It takes a while to re-add all the files. Why is this happening, and is there a way to fix this? Any help is appreciated!


Also, this is a good time to ask: does the model fully remember files added to the context previously in the chat (in the composer)? It seems to remember the files, but I don’t know if it has access to all of them and in their entirety. Is there even a reason to re-add previously added files to the context?

(What if a file is updated? Does it need to be re-added?)

Versions

  • Cursor: 0.47.8
  • VSCode: 1.96.2
  • OS: Windows 11

Not sure if this is something that was fixed in 0.48 already but i cant reproduce it as it always uses the same context and i have to remove it if i dont want it.

Could you check if new chat or restarting Cursor fixes it?

I have the same issue… the last week cursor been horrible..

1 Like

Hey, I recommend always adding the necessary context without overloading your request. It might be related to your chat becoming too large. Although the model remembers your context, I would recommend starting a new chat whenever the task changes. This helps prevent cluttering the context window with unnecessary information.

It works again, retaining the context, after I restarted Cursor.

1 Like