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.
- 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
- 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
-
The plugins disappeared (were marked as deleted in git)
-
We used git restore to bring them back
-
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:
-
These files were marked as deleted without any explicit delete commands
-
This happened while we were working on test compatibility
-
The files were still in git’s history (which is why git restore worked)
-
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