Infinitely looping line 1 of Cursor chat changes

Ran into this pretty abrasive bug. duplicated over 300 lines of line 1 of the code change. The only way to stop the loop was to cancel the generation and reject changes. Not sure how this even happened, I was using Cursor chat mode (on second or third chat) and it happened. Not a huge deal, just thought it was strange.

Specs
Mac OS Sequoia 15.2
Latest Cursor version

Hmm, strange, but also unfortunately common with LLMs. We do try to mitigate against this, and newer LLMs have got better at not doing this, but it can definitely still happen - thanks for reporting anyway!