I often observe that when the model tries to edit a file in the agent mode, it often attempts to do a string replace in the file and fails, and attempts again with a different tool, I assume, and succeeds. This is probably the first tool call that it always takes up, but it always ends up failing.
A good way to reproduce this bug is just to ask Cursor in an agent mode to edit a file. Don’t give it clear parameters on what needs to be edited. Let it come up with a plan to edit multiple files and see how it performs.
Yes this is very annoying.
It keeps doing that and then it fixes it, then does it again, then fixes it… and so on. Massive bug that probably costs immense redundant computing power.