Agent wipes files; not recoverable through Agent Checkpoints

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The file change in the first screenshot is not visible in the chat and is not restored by the “Restore Checkpoint” button. You can roll back only through git.

However, you can see such a strange operation in the Chat (see screenshot 2)

Steps to Reproduce

Ask the Agent to make some changes.

Screenshots / Screen Recordings


Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.14 (user setup)
VSCode Version: 1.99.3
Commit: 64b72c9cd7e38203078327f881d5fe74930b2600
Date: 2025-09-11T21:41:40.820Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631

For AI issues: which model did you use?

gpt-5

For AI issues: add Request ID with privacy disabled

5d275960-056d-4d9c-84f3-ccd1c6bd19d6, Privacy on

Does this stop you from using Cursor

Sometimes

I think this is a pretty important issue, so @condor @deanrie

It seems to me that as a hotfix, it is quite easy to detect and prevent such changes. And if the Agent really wants to erase the file code, he will intentionally delete the file.

when agent creates a new file, it is not removed by restoring a checkpoint, not sure if it is same as what is OP describing

This is not it, and I have not noticed such behavior. You should create a bug report about your problem.

@Artemonim I am trying to reproduce it. Could you give me a more detailed breakdown what steps you go through and where that this issue happens?

I can assume that this is a rare random error. I worked with the Agent the same way as always.