Where does the bug appear (feature/product)?
- Cursor IDE
Describe the Bug
Unable to use Cursor Agent/Ask/Plan mode in a large monorepo. Requests hang at “Planning next moves” for ~1 minute, then fail with connection errors.
Environment
- Cursor for Enterprise
- macOS
- Large monorepo: ~14GB, ~586,000 files before ignores
Steps to Reproduce
- Open a large monorepo in Cursor (~50,000+ files after applying
.cursorignore) - Open a new chat (Agent, Ask, or Plan mode)
- Type any message (even “hello”)
- Wait ~60 seconds at “Planning next moves”
- Error appears: “Connection stalled” or “NGHTTP2_ENHANCE_YOUR_CALM”
Expected Behavior
Cursor should respect .cursorignore patterns and work with large monorepos, especially after reducing indexed files to ~53,000.
Error Messages
NGHTTP2_ENHANCE_YOUR_CALM- Stream closed with error codeConnection stalled- After ~60 seconds of “Planning next moves”
Operating System
- MacOS
Version Information
IDE:
Version: 2.4.27
VSCode Version: 1.105.1
Commit: 4f2b772756b8f609e1354b3063de282ccbe7a690
Date: 2026-01-31T21:24:58.143Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
For AI issues: which model did you use?
Auto (switches between Claude Sonnet and Claude Opus)
For AI issues: add Request ID with privacy disabled
Multiple Request IDs across different attempts:
fa1bbe06-731b-488e-93e7-0053ef4e817e8113fe34-ebef-44a2-bf39-60f0c7a4730ac3241214-cf74-4ec4-8c17-db14cf47ed6d38b7cce7-6b1f-464e-9b39-a24dd810eca817912bcf-57de-4a0c-8050-7107a7ef679f
Additional Information
Troubleshooting attempted (all unsuccessful):
-
Added comprehensive
.cursorignorewith patterns:**/.venv/ node_modules/ .pnpm-store/ **/dist/ **/build/ coverage/ .nx/ **/__pycache__/ **/.pytest_cache/ **/.ruff_cache/ .git/ pnpm-lock.yaml uv.lock -
Updated
.cursorindexingignorewith same patterns -
Restarted Cursor multiple times
-
Reinstalled Cursor completely
-
Deleted Cursor project cache:
rm -rf ~/.cursor/projects/<project-folder> -
Switched from Agent mode to Ask mode - same error
-
Verified file count reduced from 586,000 → ~53,000 after ignores
-
Tested same prompt in smaller repo - works fine in a different smaller workspace
Key observations:
- Same prompt works in a smaller repo (~few hundred files)
- Issue is specific to the large monorepo
- Error occurs even with simple prompts like “hello”
- Cursor status page shows all systems operational
Repo structure:
- Monorepo with multiple Python and TypeScript apps
- Each Python app has its own
.venv(~300MB each) - Uses nx for workspace management
- Main content is 13GB in the workspace directory
Looking for guidance on:
- Are there additional settings to reduce context size?
- Is there a file count or repo size limit for Cursor?
- Any server-side issues visible for the request IDs above?
Does this stop you from using Cursor?
- Yes - Cursor is unusable (for this specific repository)