Remote-SSH: .cursorignore discovery hang blocks Agent tools on large NFS workspaces

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On Remote-SSH workspaces with a large project tree (especially over NFS), Cursor’s .cursorignore discovery can hang for 60s+ and never finish. While that walk is stuck, the remote extension host becomes unhealthy: Agent tool provider registration times out, Search never registers, and Agent Shell/tools hang forever — even though a normal SSH terminal in the same folder works.

Same host / same Cursor remote server is fine for smaller sibling projects. Adding a root .cursorignore that excludes heavy dirs (data/, models/, etc.) immediately unblocks Agent tools.

Looks like a missing timeout / fail-open for .cursorignore discovery: a large/slow filesystem walk blocks agent-exec registration instead of continuing with a warning.

Steps to Reproduce

Connect via Remote-SSH to a Linux host with a large NFS-backed project (many heavy dirs: data/, data_tmp/, models/, mysql/, third_party/, etc.).
Open the project root as the workspace with no root .cursorignore.
Start Agent chat and run a trivial command, e.g. echo agent-ok.
Observe Agent tools hang. In logs you get:

[CursorIgnore] .cursorignore discovery has not completed after 60000ms; context reads that wait for it are still blocked
[agent-exec] Provider registration timed out (attempt 1/9, timeout=30000ms), retrying
[SearchService] Extension registration timed out after 5000ms
No search provider registered for scheme: vscode-remote
Workaround: add root .cursorignore + files.watcherExclude / search.exclude, Reload Window → tools work again.

Expected Behavior

.cursorignore discovery should time out or skip slow subtrees without blocking Agent tool registration.
Agent Shell should keep working even if ignore discovery is incomplete (fail-open + warning).
Ideally warn that the workspace tree is too large/slow and suggest creating .cursorignore.

Operating System

Linux

Version Information

Cursor: 3.24.18 (stable)
Commit: be4c9e5350d77747b42cd467cbd3370a753d4640
Date: 2026-10-13T18:12:58.182Z
Client OS: Windows 10 (10.0.22000)
Remote: Ubuntu 22.04, Linux 5.15.0-91-generic, Remote-SSH over JumpServer, project on NFS

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @luzengxiangcn, thanks for the report and for tracking down the workaround.

This is a known issue we’re tracking with Remote-SSH on network filesystems, and I’ve added your report to it. On a remote workspace, Agent, search and indexing all run in the same remote extension host. When the project tree is very large and on NFS, the startup scans keep that host busy long enough that Agent never finishes registering. The .cursorignore message is one of the visible signs, not the only cause.

Until there’s a fix, your workaround is the right one. Keep the root .cursorignore (data/, data_tmp/, models/, mysql/, third_party/ and similar), add the same folders to files.watcherExclude and search.exclude, then reload the window. Opening just the subfolder you’re working in also helps.

To help the team narrow it down, could you share:

  1. The output of df -T ~ ~/.cursor-server <your project path> on the remote, so we can see which parts are on NFS
  2. A rough file count for the project, e.g. find <project path> -xdev | wc -l (only if it finishes in reasonable time)