Cursor IDE Rouge File Deletion

Hey, thanks for the detailed report. This is a serious issue. We’re seeing similar reports from other users with the same pattern (macOS + SSH remote + laptop sleep or disconnect = files deleted from disk). Here’s a related thread: Critical bug - Cursor SSH Remote physically deletes workspace files on disconnect/reconnect.

The team is aware of the problem. To help us prioritize and debug it, we’d like to collect some diagnostics. Next time this happens, before running git restore, if possible:

  1. Copy the SSH logs: View > Output > select “Anysphere Remote SSH” in the dropdown
  2. Run ls -la in the directories where the files disappeared (to confirm they’re actually deleted and not a permissions issue)
  3. Run ps aux | grep cursor on the remote server to see which Cursor processes were active
  4. Check if the files are in the remote trash (~/.local/share/Trash or similar)

A couple questions too:

  • Which SSH extension are you using? Anysphere Remote SSH or the standard VS Code Remote-SSH? If you’re using the VS Code one, please switch to Anysphere.
  • Extension list: cursor --list-extensions would be helpful so we can see if there are any conflicting extensions.

As a temporary workaround, besides frequent commits, you can set up a crontab or systemd job on the remote to run git stash or back up the workspace every N minutes. Not ideal, but it can help prevent data loss until this is fixed.

Let me know if you’re able to grab the logs.