Rogue chat started to edit code and no way to stop it

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I sent a chat message to an agent, then decided to cancel it. It looked like the chat was cancelled. I think the agent continued to think and started to edit my code, however the chat appeared as if it was blank. Now my code is super messed up and I have no way to revert the changes except to an earlier git commit.

Steps to Reproduce

Unsure; try sending a message and then stopping it?

Operating System

Windows 10/11

Version Information

Version: 3.20.14 (user setup)
VS Code Extension API: 1.128.0
Commit: 67ac8ff8cc118b1eddcb5f2de564c20cffcae940
Date: 2026-09-11T21:43:19.302Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.22631

For AI issues: which model did you use?

Grok 4.5

For AI issues: add Request ID with privacy disabled

d40edd28-ac97-4312-8c02-a76edd9410b5

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @zanawar,

First, recovery beyond git: Cursor keeps a local file history that’s separate from checkpoints. Right-click an affected file in the Explorer, choose Open Timeline, find a Local History entry from just before that run, and use Restore Contents. That snapshot predates the edits, so it often survives even when the chat’s checkpoint is gone.

What happened isn’t intended behavior and isn’t anything you misconfigured: the agent’s activity wasn’t showing in the chat during that run, so Stop cleared the turn (and its restore point) as if nothing had happened. We’ve let the team know and this is an issue we’re tracking.

If it happens again, before pressing Stop open Help > Toggle Developer Tools and grab any red errors from the Console. That would help us a lot.

“If it happens again, before pressing Stop open Help > Toggle Developer Tools and grab any red errors from the Console. That would help us a lot.”

While this was happening there was no stop button. It appeared as if it was an empty chat with no messages sent, and it was waiting for me to input a message to send..