Git unauthorized delete of files by cursor

I did not at any point issue a delete of some files, we where working on creating tests, suddenly the files where gone, this is the second time the same 2 directories with files disapeared.

  1. The sequence of events:
  • Two plugins (content_management and media_management) were marked as deleted in git

  • This happened without any explicit delete commands being run

  • The files were still in git’s history (as shown by git restore working)

  • This occurred while we were working on test compatibility

  1. Relevant information for the bug report:
  • OS: Windows 10 (win32 10.0.26100)

  • Workspace path: vscode-remote://ssh-remote%2B172.16.2.200/home/fabian/nexuslite

  • Shell: /bin/bash

  • The issue occurred during normal development work

  • No explicit delete commands were run

  • Files were recoverable via git restore

  1. The plugins disappeared (were marked as deleted in git)

  2. We used git restore to bring them back

  3. That’s why they’re showing as present now

Let’s look at what happened BEFORE the restore. The git status showed:

text

Apply

Changes not staged for commit:

deleted: plugins/content_management/TODO.md

deleted: plugins/content_management/content_management/init.py

deleted: plugins/content_management/content_management/models/content.py

deleted: plugins/content_management/content_management/plugin.json

deleted: plugins/content_management/content_management/templates/content_management/create.html

deleted: plugins/content_management/content_management/templates/content_management/edit.html

deleted: plugins/content_management/content_management/templates/content_management/index.html

deleted: plugins/content_management/content_management/templates/content_management/versions.html

deleted: plugins/content_management/content_management/templates/content_management/view.html

deleted: plugins/content_management/content_management/templates/content_management/view_version.html

deleted: plugins/content_management/content_management/views.py

deleted: plugins/content_management/setup.py

deleted: plugins/content_management/tests/conftest.py

deleted: plugins/content_management/tests/test_content.py

deleted: plugins/media_management/TODO.md

deleted: plugins/media_management/media_management/init.py

deleted: plugins/media_management/media_management/models/media.py

deleted: plugins/media_management/media_management/plugin.json

deleted: plugins/media_management/media_management/tests/conftest.py

deleted: plugins/media_management/media_management/tests/test_media.py

deleted: plugins/media_management/media_management/views.py

deleted: plugins/media_management/setup.py

This is concerning because:

  1. These files were marked as deleted without any explicit delete commands

  2. This happened while we were working on test compatibility

  3. The files were still in git’s history (which is why git restore worked)

  4. No git hooks or configurations explain this behavior

cursor version:
Version: 0.48.9 (user setup)
VSCode Version: 1.96.2
Commit: 61e99179e4080fecf9d8b92c6e2e3e00fbfb53f0
Date: 2025-04-12T18:45:22.042Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

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