Cursor caught itself deleting large swaths of code then back-tracked

Is this a recent enhancement with Cursor’s behind-the-scenes prompt-engineering? It was the first time I actually notice Cursor-Claude catching itself deleting 40% of my code and I was hovering over the Reject button when it caught itself deleting it, appologized, back-tracked and made a more sensible surgical edit.

Sign of good things to come I hope, or just a fluke with the agent back-end?