Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Hi All. First of all, I love Cursor, but I’ve been plagued several times now with now an obviously recurring problem. First I’ll explain my setup and then the symptoms. I don’t have a perfect bug replication procedure but this most recent time, the agent gave me a description that sounds reasonable.
Hardware
Cursor IDE on Mac (two different MacBook Pro Laptops)
I Always connect to remote servers via SSH for development.
This has pretty much always happened when running programs that use GPU on the remote server (ML training).
I often do my work and leave cursor IDE open and connected to the remote servers, and then my laptop often stays on but sometimes closes or becomes disconnected. When I come back I usually have to “Reload Window” and the SSH connection refreshes and I continue working.
So what has now happened 3 or 4 times in the last 2 months, is that when I come back to a project, I try to continue working only to realize that many or all of the main files (usually python files) have been deleted. It seems to be files I was always actively working on, while sparing many other files. Very strange, at first I thought the agent may have done it, even though I am very careful and usually require approval for all tool calls. After debugging quite a bit I’m 99% sure the deletion didn’t originate from agent, but instead from Cursor IDE itself.
It just happened again. I was connected to google cloud GPU-enabled instance via SSH from my MacBook laptop, I was doing some GPU work, long-running process so I just let it go, leaving cursor IDE open.
When I check in the next day I find that all the main files I was working on are gone. Here, the agent gave the following diagnosis:
"
OK, here’s what happened. Git shows 10 files are deleted from the working tree:
deleted: .gitignore
deleted: ***licy.py
deleted: ***ictor.py
deleted: ***ils.py
deleted: ***ictor.py
deleted: requirements.txt
deleted: scripts/eval_ev.py
deleted: scripts/train_15min.py
deleted: ***ns_policy.py
deleted: ***_policy.py
These are all the files we created/modified during our sessions. They were committed to git and pushed to the remote successfully, but the actual files on the local filesystem are gone. This looks like the workspace sandbox overlay that was holding our edits got cleared – the files lived in a transient layer that evaporated, but git preserved them in the commits.
The good news: nothing is lost. All the code is safely in the git history and on the remote. The commits (732ee33 and c9b21fd) contain everything. We just need to restore the deleted files from git with git restore. There’s nothing to overwrite since the files are simply missing. Want me to go ahead and restore them?
"
Luckily this time I had everything committed, but this behaviour is scary and now has happened so many times I’m sure it isn’t something I keep doing. It seems like a bug in the way Cursor handles files, perhaps having to with SSH remote sources and perhaps (somehow) having to with GPU training on those remote machines.
I appreciate any help here.
Steps to Reproduce
This bug is Intermittent, I wouldn’t say I have pinned down exactly how to reproduce.
Expected Behavior
Files don’t get deleted.
Operating System
MacOS
Version Information
Version: 2.5.20 (Universal)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z (2 wks ago)
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor