Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Hiya,
I’m reporting a critical recurring data-loss bug in Cursor SSH Remote that has now happened three times. I’ve done enough investigation to describe it precisely.
Setup:
Two git repositories open simultaneously in the same workspace: ~/colony-os and ~/colony-dashboard
What happens:
I work in a Cursor SSH Remote session for 1–3 hours, making file edits
At some point Cursor becomes unresponsive (“unable to connect to client”) — likely triggered by a Tailscale/SSH hiccup (i often get prompted to reload the window)
I close and reopen Cursor
A large number of files are physically missing from disk on the remote machine
After reconnect, Cursor’s git extension shows two popups:
“The git repository at /Users/emiglio/colony-dashboard has too many active changes, only a subset of Git features will be enabled.”
“The git repository at /Users/emiglio/emiglio has too many active changes, only a subset of Git features will be enabled.”
Precise diagnosis (confirmed by checking git state after incident):
This is not about uncommitted changes. I have confirmed after the most recent incident:
Local HEAD = Remote HEAD — both repos are at the exact same commit as GitHub. No git reset occurred.
Git history is fully intact — all commits are present locally and on GitHub
git status shows ~75+ files marked D — present in the git index and on GitHub, but physically absent from the filesystem
Recovery requires only git restore . — which confirms the files are in the committed state, just deleted from disk
Conclusion: Cursor SSH Remote seems to be physically deleting files from the working directory without modifying git. This is not a git reset, not a checkout, not a stash. Something in Cursor’s SSH Remote reconnection/cleanup routine is running rm (or equivalent) on workspace files and leaving the git index intact.
Consistent symptoms across all 3 occurrences:
Always triggered by SSH/Tailscale disconnect followed by Cursor reconnect
Always affects a large subset of files (75+ in one repo, similar in another) — not all files
Always leaves git commits untouched
Dev server confirms files are genuinely absent from disk (not a display glitch)
The “too many active changes” git warnings always appear around the same time
Each time this happens, I lose my session of work and have to reconstruct it from scratch with an AI coding assistant. I am using Cursor specifically as an AI coding tool and each reconstruction session is starting to pile up in token usage.
For now I’ve added added a hard rule to make sure my agent backs everything up after every change
What I’d need from you:
Identify what process in Cursor SSH Remote is deleting files on workspace reconnect — specifically what runs when the “too many active changes” state is detected
In the meantime, is there a way to disable whatever cleanup routine is responsible?
Thanks!
Steps to Reproduce
Steps to reproduce (approximate):
Open two git repos in Cursor SSH Remote over Tailscale
Make a large number of file edits over a 1–2 hour session
Allow the SSH connection to drop (or force-quit Cursor)
Reopen Cursor and reconnect via SSH Remote
Observe that modified/created files from the session are missing
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Client machine: MacBook M1 on Sequoia (Cursor SSH client)
Version: 2.6.11
VSCode Version: 1.105.1
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990
Date: 2026-03-03T18:57:48.001Z (4 days ago)
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0
Remote machine: Mac Mini M4, macOS Tahoe (26)
Connection: Cursor SSH Remote over Tailscale (local network)
For AI issues: which model did you use?
Sonnet 4.6 Thinking, sometimes temporarily auto-switches to Composer 1.5 if I’ve exceeded my limit. YOLO enabled
Additional Information
I also receive a persistent error: ‘The VSCode Remote Containers extension is not supported with the Anysphere Remote SSH extension.’ I have not yet switched to Anysphere Remote Containers. It is possible this extension conflict is contributing to the file deletion behaviour — VSCode Remote Containers may be running its own workspace cleanup logic that conflicts with Anysphere Remote SSH’s file management.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
