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.

Project closed source but I run that request under Shared Data.
RID: 06852280-3cd1-431e-9fdb-0cb6fa69f1e2

stack: Rust + TypeScript
I’m giving the GPT-5-mini a task to do the job, he writes lib.rs and in the process of working on the task, he completely erases the contents of the file without noticing it. I tried sending prompt again several times and it erases the code in its main file again in the process.

Version: 1.6.26 (user setup)
VSCode Version: 1.99.3
Commit: 6af2d906e8ca91654dd7c4224a73ef17900ad730
Date: 2025-09-16T17:12:31.697Z
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
1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.