Summarizing chat context - why?

image

No idea what this is for, it never used to require this?

And is clearly broken:

Summarising has always happening in Cursor for a very long time, but it’s only recently that we decided to actually show you when this is happening, as it can have a significant effect on your workflow.

When your conversation gets longer than the context window of the model you are using, we have two choices:

  1. We cut the top off your chat, and just feed the latest messages and context into the model
  2. We tell you you’ve reached the limit and force you to start again
  3. We summarise the oldest messages so the model still has a high level understanding of what happened, while still being able to continue your chat

We’ve always chosen option 3, and our summarisation strategy has gotten better over time. With this latest release, summarisation should be our best yet, keeping the nuance of what you’ve worked on so far, but condensing it down for the model to use!

If you’re seeing any freezing, I’d encourage you to post a bug report, ideally checking the contents of the console (by running the Developer: Toggle Developer Tools command), as there will likely be an error we need to fix!

1 Like

Thanks Dan, that information is much appreciated.

Is it possible to use a progress bar, or % count or something instead?
A spinner does not instil the user with confidence that the process will end!

Also, what’s best (user) practice here? If it’s to ideally start a new chat where possible, a little prompt next to ‘summarizing context’ informing us the chat has exceeded / may exceed the current context window, and to consider starting a new chat, might ensure some better behaviour on the user’s part.

It really depends on your usage of Cursor and the chat.

Many of us in the team frequently start new chats, any time we move to a new area of the codebase or start work on a new feature.

Others like to stick in one, huge chat that summarises often.

The formal is usually the best way to keep context concise and not too verbose, but either way can work if you lean into the behaviours.

I believe you will see a prompt to start a new chat if you’ve seen a lot of summarisation in the same chat (but don’t quote me on that!)

1 Like