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:
- Copy the SSH logs: View > Output > select “Anysphere Remote SSH” in the dropdown
- Run
ls -lain the directories where the files disappeared (to confirm they’re actually deleted and not a permissions issue) - Run
ps aux | grep cursoron the remote server to see which Cursor processes were active - Check if the files are in the remote trash (
~/.local/share/Trashor 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-extensionswould 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.