STUPID-2026-0181
Cursor Agent mode deleted source files outright instead of the targeted edit, confirmed as a bug by Cursor staff
Why 4/10
Two independent reporters in the same thread, hours apart, had a single source file deleted outright by Cursor's Agent mode instead of the requested edit. Both recovered the file — one via Cursor's local checkpoint history, the other the same way — so nothing was permanently lost, and the damage stayed inside each developer's own local project. Cursor staff confirmed it as "definitely a bug" and escalated it, but no root cause or fix had been posted as of the thread's last update.
- Scope
- 1/4
- A few files, one session, one credential, or a small cost
- Recoverability
- 1/3
- Fully recovered, with effort
- Did it happen
- 2/2
- Happened in real use
- Beyond the user
- 0/1
- Only the user's own non-production work
The score is the sum of these four factors. How each factor is scored · scored 2026-11-30
Instruction given
Reporter one: a follow-up clarification sent to an in-progress Agent-mode request (model: Gemini 3) before accepting or rejecting its pending change. Reporter two: asked the Agent to remove a fix it had just made and try a different approach instead.
Expected behavior
The Agent should apply the requested edit (undo one change, try another approach, or incorporate a clarification) without deleting the file it was working in.
Actual behavior
For the first reporter, a source file was deleted mid-Agent-request after he sent a follow-up clarification without first accepting or rejecting the pending change; he could not reliably reproduce it and described it as an "agent seizure." For the second reporter, posting about an hour later in the same thread, asking the Agent to remove a fix and try another approach caused it to delete the entire file rather than just the fix. A Cursor forum staff member (Dean Rie) initially said the Agent should never delete files without explicit approval and asked for reproduction details, then four days later wrote "This is definitely a bug" and said he was escalating it to the team.
Damage
Both reporters recovered: one restored the file from Cursor's checkpoint history, the other from history as well. No data was permanently lost and no production system was involved — the impact was the deleted work and the time spent recovering it. No fix or root-cause explanation had been posted as of the thread's last visible update.
Full write-up
Two Cursor users posted to the same "Source file deleted" bug report thread on the Cursor Community Forum within about an hour of each other. The first, running an Agent-mode request on Gemini 3, had a source file deleted after he sent a follow-up clarification without first accepting or rejecting the agent's pending change — not reliably reproducible, and he called it an "agent seizure." The second asked the Agent to remove a fix it had just applied and try a different approach; instead of reverting just the fix, the Agent deleted the whole file. Both recovered their work through Cursor's local history/checkpoint system rather than through any action by Cursor itself.
A Cursor forum staff member, Dean Rie, responded the same day that the Agent should not delete files without explicit approval and asked for more detail, recommending the standard workaround of using git and resolving pending checkpoints before sending follow-up messages. Four days later he wrote back: "This is definitely a bug," and said he was escalating it to the team. As of the thread's last visible update there was no confirmed root cause and no shipped fix — just an acknowledged, unresolved bug class in which Cursor's own Agent mode deletes files it was never asked to delete.
Classification
- Agent
- Cursor
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Other
- Source
- User Report
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0181: Cursor Agent mode deleted source files outright instead of the targeted edit, confirmed as a bug by Cursor staff." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0181/ (accessed 2026-12-01). CC BY 4.0.
← STUPID-2026-0180By IDSTUPID-2026-0182 →
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.