Grok off track deleted models.py in django

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

cursor deleted models.py. problem timeline > cursor crashed and reloaded > cursor reload forces agent view > i close this (i don’t use it as I use IDE) > ssh session deleted from list > reloaded mulitple times > eventually opens > my remote server crashes and freezes > eventually I access remote via terminal and kill cursor process > cursor restarts > continue working and using grok > then conversation 155bb7ca-35ab-4e2c-b7aa-5abb4bf60897 gets lost running shell command and starts searching for models and GIT after a simple request, i watched thinking and could see grok was off track > i ask grok to clarify intent > replies models missing. eventually I restore models from another backup but the big issue for me is how did such an important file get deleted mid-way through a conversation? Please inspect and reply to me personally as this is a major issue.

Steps to Reproduce

this is a combination of possible issues you will need to read flow above

Expected Behavior

Grok should not delete files - or - cursor crashing should not damage files. you need to determine why this happened in the first place.

Operating System

MacOS

Version Information

Version: 3.17.8
VS Code Extension API: 1.128.0
Commit: 2fdd31c9f33f7fbe501f2d57772dc5bf64b63620
Date: 2026-08-20T02:18:12.724Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 22.1.0

For AI issues: which model did you use?

grok 4.6 high fast

For AI issues: add Request ID with privacy disabled

155bb7ca-35ab-4e2c-b7aa-5abb4bf60897

Does this stop you from using Cursor

No - Cursor works, but with this issue

Now discovering multiple files lost. Please investigate.

Hey @DanSt
Sorry about the lost files. Quick recovery first: Cursor keeps a Local History on the remote server, so while connected over SSH, open the Command Palette (Cmd+Shift+P) → Local History: Find Entry to Restore, or look under ~/.cursor-server/data/User/History/ on the host. That’s your best shot at getting the other missing files back.

On your question: in the session you shared, the agent didn’t delete models.py. It went “off track” because the file was already gone when it tried to read it. The crash → reload → SSH reconnect sequence you hit lines up with an issue where recently-edited files on a remote host can go missing around a reconnect. It’s not something you misconfigured, and it’s an issue we’re tracking. I’ll post here when there’s an update. In the meantime, committing/backing up often is the best protection.

Thanks Mohit, I’ve replied to the other thread. For anyone else reading this the missing files were not recently edited.