Multiple files automatically deleted without consent

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I requested Cursor to delete a feature and expected that some related files would need to be removed. However, Cursor deleted 5 files without asking for ANY confirmation beforehand.

Steps to Reproduce

Ask to remove something in your code.

Expected Behavior

Cursor should confirm before deleting files.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.17
VSCode Version: 1.105.1
Commit: cf858ca030e9c9a99ea444ec6efcbcfc40bfda70

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, thanks for the report. According to expected behavior before changes, a diff with confirmation should be shown: Review | Cursor Docs

To investigate, please share:

  • The exact prompt and steps before deletion
  • Which mode was enabled in the chat (Agent, Plan, Ask). If Agent - were auto-actions enabled
  • Whether the diff review interface appeared or changes were applied immediately
  • The Request ID of the problematic session: in the chat, open the menu in the top right → Copy Request ID, and also through the Report AI Action command for history: instructions Getting a Request ID | Cursor Docs
  • Logs from Help → Toggle Developer Tools → Console around the time of deletion
  • Whether these files were under Git and if the deletions are visible in Source Control

Once you send the data, we’ll escalate the bug to the team and get back with updates.

Hey! Installed latest update, tested it, and the deletion problem seems resolved now!

For completeness though, here’s my answers to your questions:

  1. My prompt: “remove anything related to the mention funitonality” (not a super safe prompt but there you go ahah)
  2. Agent mode. I never actively enabled auto-actions, so it should have been default (off?)
  3. Deletion was applied immediately
  4. Request ID: 1ea299a8-a79e-451b-b128-1b8b2bbfba79
  5. Files were under Git - file deletions were reflected once code was pushed. I’m not able to retrieve the exact source control and logs state at the time of the error because I kept working on the code and push changes in the hours that followed.
1 Like

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