I am working in a considerably large mono repo using remote SSH. When using the Cursor chat in the IDE, it gets stuck at “Waiting for extension host”.
I noticed that Cursor starts multiple processes like this
<path>/.cursor-server/bin/linux-x64/224838f96445be37e3db643a163a817c15b36060/node_modules/@vscode/ripgrep/bin/rg --files --hidden --no-require-git --no-config --color=never --follow --iglob */**/.cursor/rules/**/*.mdc --iglob !**/node_modules/** --iglob !**/.git/** --iglob !**/.turbo/** --iglob !**/.next/** --iglob !**/.cache/** --iglob !**/.pnpm/** --iglob !**/.yarn/** --iglob !**/dist/** --iglob !**/build/** --iglob !**/out/** --iglob !**/target/** --iglob !**/.vscode/** --iglob !**/.idea/** --iglob !**/venv/** --iglob !**/__pycache__/** --iglob !**/logs/** --iglob !**/tmp/** --iglob !**/temp/**
And they never finish. Also in Cursor settings in “Rules, Skill, Subagents” everything is stuck in a loading state.
I think the problem is that the rgcommand has */**/.cursor/rules/**/*.mdc as a pattern in conjunction with --follow which can quickly balloon the search space.
My hack for now is adding a .rgignore in my repo root that has something like:
*
!.cursor/
!AGENTS.md
This hack has fixed the problem for me. But it might have other side effects because rgis used by other tools/extensions as well. So hopefully there’s a official fix soon.