Hi Cursor team,
I’ve been running into a recurring issue that has become quite frustrating.
One Of The Sample Request ID: 3bb6df06-da76-4737-9f51-19259c4761d4
Problem
The Cursor Agent frequently gets stuck in an infinite loop where it repeatedly shows messages like:
- Explored X files
- Chat context summarized
- Thought briefly
- Explored more files
- Chat context summarized
This continues indefinitely without ever producing a response.
While this is happening:
- Tokens continue to be consumed rapidly.
- CPU usage increases.
- The agent never finishes the task.
- Eventually I have to cancel the request.
What’s strange
This happens even when I provide:
- The exact file(s)
- The exact file path(s)
- The exact function/class to modify
- Very specific instructions
In many cases, there is no reason for the agent to search the entire repository, yet it keeps exploring files and repeatedly summarizing context.
What I’ve already tried
- Started a brand new chat.
- Reindexed the workspace.
- Restarted Cursor.
- Reduced the prompt size.
- Pointed the agent to only the relevant files.
- Tried different chats.
The issue still occurs.
Interestingly, if I stop using Cursor for a few hours and come back later, it often starts working normally again. Then after some time, the problem returns.
Expected behavior
If I’ve explicitly provided the target files and paths, I’d expect the agent to primarily use those files instead of repeatedly searching and summarizing the repository.
It would also be helpful if there were:
- a timeout for infinite planning/search loops,
- a way to see why the planner keeps searching,
- or a mechanism to stop token consumption when no meaningful progress is being made.
At the moment, it feels like the agent enters a planning loop that burns through tokens without making progress.
Has anyone else experienced this? If so, were you able to identify the cause or find a workaround?
Thanks!
