Create new chat targeting same file, handler etc

Feature request for product/service

Chat

Describe the request

Something I do over and over again when working on a single file/component/hander is create a new chat, the first thing I then do is @ my file name, handler, component etc.

It would be great if the relative context could be handled/referenced in a sidebar next to the chat and not just in the message contents.

Example: I am working on @Example.jsx, I want to create a new chat but continue working on that file. It would be great if there were a ‘New chat, keep context references’ button where the contact references are already @ mentioned.

Hope that makes sense! Recently switched to Agents window and really enjoying it.
Thanks!
Jack

Hey @jkpe!

Thanks for the feedback! Starting fresh chats frequently is a really good habit.

I’m curious: what results have you seen when you haven’t explicitly referenced the file?

In case you didn’t know, Cursor includes a section listing Open and Recently Viewed files as part of the context it sends with each request. Often, this is enough for Cursor to know where to start working.

Hey Colin,

To be fair, Cursor & Composer 2.5 does an excellent job of decoding my lazy prompts so I have no concerns it wouldn’t find the correct file/reference, I’m just impatient and try to save on a few tokens by referencing the file/handler each time.

I knew that it automatically included the currently open file from my IDE days however didn’t realise it also included recently. Although having said that, now I’ve moved to Agents window I am opening individual files less and less and instead just keep an eye on the size of the diffs and which files have diffs as a sanity check that the agent hasn’t gone off on a tangent.

Cheers!