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