The agent stops randomly when it performs any action. In most cases, it will stop after reading basic rules and files.
I was suspecting that it might be a context length issue, but sometimes it works fine without any problems.
Version: 0.49.6 (user setup)
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T04:49:20.797Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631
I partially solved this problem,
When the agent stops unexpectedly, switching the model to another model (in this case I’m using gemini-2.5-flash) and tell the agent to continue the task, before it performs any actual editing, stops and switches back to the gemini-2.5-pro model again.
My guess is that the gemini-2.5 pro model can’t call the summary function, so every time it reaches the token limit and calls that function, it gets errors and stops. Switching to another model allows the summary function to be called correctly and then proceeds successfully.
Hey, thanks for the report and the repro. We’ll look into it.
Thanks, I really appreciate that Cursor has provided us with such a great tool. Please let me know if there is any further information I can provide to help investigate the problem.
1 Like