Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor repeatedly becomes unusably slow or crashes when indexing a large ML/video workspace.
This has happened many times:
- Cursor slow/crash during indexing: 10+ times
- Tracked files unexpectedly appearing as deleted in git status: 3+ times
During the incident, I monitored top continuously and observed total Cursor-related CPU usage staying above 350% for a while. The main process was node … --type=extensionHost, and several rg processes were running at the same time.
The rg commands looked like:
rg --files --hidden --case-sensitive --no-require-git --no-ignore-parent --follow --no-config --no-ignore-global …
The workspace contains many ML/video artifacts: model checkpoints, generated images/videos/audio, runtime caches, preprocessing outputs, training runs, package caches, and large binaries such as .pth, .onnx, .trt, .mp4, .jpg, .npz, .pkl.
The most serious issue is that tracked files unexpectedly appeared as deleted in git status. In one case, this broke a running dev server because source files disappeared from the working tree:
ModuleNotFoundError: No module named ‘app.api.rest’
I recovered the files with:
git ls-files -d -z | xargs -0 git restore –
I understand rg itself should be read-only, so I am not claiming ripgrep directly deleted files. But the repeated sequence is:
- Cursor indexing starts
- extensionHost / rg becomes very heavy
- Cursor freezes or crashes
- tracked files sometimes appear deleted
This seems unsafe for large workspaces.
Steps to Reproduce
- Open a large ML/video workspace in Cursor.
- The workspace contains many generated artifacts and large binary files, such as:
- model checkpoints
- training runs
- runtime caches
- preprocessing outputs
- generated images/videos/audio
- package caches
- *.pth, *.onnx, *.trt, *.mp4, *.jpg, *.npz, *.pkl
- Let Cursor indexing run.
- Monitor CPU usage with top.
- Observe node … --type=extensionHost and multiple rg processes consuming high CPU.
- In some cases Cursor becomes unusable or crashes.
- In several incidents, git status showed many tracked files as deleted, even though I did not delete them.
Expected Behavior
Cursor indexing/search should never modify, delete, or cause tracked source files to disappear.
If a workspace is too large or risky to index safely, Cursor should detect that and warn or stop indexing.
Cursor should avoid aggressive scans such as --hidden + --follow + --no-ignore-parent across large ML artifact directories unless the user explicitly allows it.
The IDE should remain usable, or at least fail safely without affecting the working tree.
Operating System
MacOS
Version Information
Version: 3.2.11
VSCode Version: 1.105.1
Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0
Date: 2026-04-24T14:36:47.933Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
Connection type: Remote SSH workspace
Remote OS: Linux 5.19.0-32-generic
Cursor server: running under ~/.cursor-server on the remote machine
For AI issues: which model did you use?
N/A - this appears to be an IDE indexing / extensionHost / file watcher issue, not a model-specific issue.
Additional Information
Regression note:
This issue started after upgrading to Cursor 3.x. The same workspace did not show this behavior before Cursor 3.
I do not have a screenshot or screen recording from the incident.
However, I monitored top continuously during the incident and observed total Cursor-related CPU usage staying above 300% for a while. The main process was node … --type=extensionHost, with multiple rg processes running at the same time.
After the incident, git status showed many tracked files as deleted, and a dev server failed with ModuleNotFoundError until I restored the files with git restore.
Related reports:
- Cursor is killing my mac! (process: rg and host-extension)
- Git unauthorized delete of files by cursor
Workaround attempted:
I added .cursorignore rules to exclude heavy/generated artifacts while keeping source code and docs indexable. The excluded categories include model checkpoints, runtime caches, preprocessing outputs, training runs, generated media, package caches, and large binary files.
This may reduce the load, but once extensionHost enters the high-CPU state, a Cursor window reload seems necessary.
Suggested safeguards:
- Detect large/high-risk workspaces before indexing.
- Warn before indexing directories with many generated artifacts or huge binaries.
- Avoid following symlinks by default in indexing scans.
- Ensure indexing/file watching cannot affect the working tree.
Does this stop you from using Cursor
Yes - Cursor is unusable