Cursor bug report draft (editor lag / UI freeze)

Describe the Bug

Title: Persistent editor UI lag + “Loading…” overlay while language service analyzes unrelated files — survives hardware upgrade (M5)

Where does the bug appear (feature/product)?

Cursor IDE editor UI (main window), especially with Agent chat open and a multi-root workspace.

Describe the Bug

The editor becomes sluggish / briefly unresponsive while editing small files. Symptoms:

  1. A “Loading…” popup appears over the editor tab bar (UI feels blocked).
  2. Status bar shows long-running analysis of an unrelated file, e.g.
    Analyzing 'convert.js' and its dependencies
    while the focused file is a tiny theme palette (newPalette.jsx, ~76 lines / ~1.5KB).
  3. Typing / switching tabs feels delayed during this analysis.
  4. This is a long-standing issue (months). Upgraded from a weaker Mac to a MacBook Pro Apple M5 / 16GB — same lag. Strongly suggests product/architecture issue (indexing, language service, Agent/chat UI), not machine power.

Steps to Reproduce

  1. Open a large monorepo (or multi-root workspace with several large repos).
  2. Open Agent chat (Agent mode).
  3. Open a small JS/JSX file (e.g. a theme constants file).
  4. Optionally have other large domain files in the project (e.g. builder utils).
  5. Observe status bar: language service analyzing unrelated large dependency graphs.
  6. Observe “Loading…” overlay and editor lag.

Expected Behavior

  • Editing a tiny file should stay responsive.
  • Background analysis of other files should not freeze or overlay-block the editor UI.
  • Stronger hardware should improve or eliminate this; it does not.

Actual Behavior

  • Editor lag / “Loading…” overlay.
  • Status bar stuck on analyzing unrelated files (convert.js and dependencies).
  • Same behavior after upgrading to Apple M5 MacBook Pro.

Screenshots / Screen Recording

Attached screenshots showing:

  • Focused file: packages/theme/src/nxtg/colors/newPalette.jsx
  • Overlay: Loading...
  • Status bar: Analyzing 'convert.js' and its dependencies
  • Multi-root workspace (UNTITLED (WORKSPACE))
  • Agent panel open

Operating System

macOS 26.6.2 (Build 25G83)

Version of Cursor

3.27.22

Hardware

MacBook Pro — Apple M5, 10-core, 16 GB (upgraded machine; issue predated upgrade)

Additional context

  • Multi-root workspace (several large repos open together).
  • Agent + review/diff UI (“Keep all changes” / “Review Next File”) active.
  • Problems: 10 / Comments: 4 visible.
  • Related forum threads (similar freezes/lag): editor freezes with Agent chat history; severe slowdowns.

Debug data (please attach after posting)

  1. Cmd+Shift+P → Developer: Capture and Send Debugging Data
  2. During lag: Cmd+Shift+P → Capture CPU Profile (~15–20s), then stop and attach
  3. If fully frozen: Terminal → sample Cursor 10 -file ~/cursor-freeze-sample.txt and attach

Steps to Reproduce

when clck to import path if used quick redirect to file from import Loading and not redirect

Operating System

MacOS

Version Information

Version: 3.27.22
VS Code Extension API: 1.128.0
Commit: b1aa50cb6db84fd3e8c808259cb172ea73425c10
Date: 2026-10-27T00:33:02.045Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @mohammad-aljamil! That Loading… overlay + Analyzing 'convert.js' and its dependencies is the built-in JS/TS language service loading a huge dependency graph in your multi-root monorepo - not the tiny file you’re editing. It’s graph-size bound, not CPU bound, so the M5 won’t help. Nothing wrong with your setup.

Quickest wins:

  1. Add a jsconfig.json at each repo root to stop it walking everything:
{ "exclude": ["node_modules", "dist", "build", "out", "coverage", "**/*.min.js"] }
  1. In settings.json:
{
  "typescript.tsserver.maxTsServerMemory": 8192,
  "typescript.disableAutomaticTypeAcquisition": true
}
  1. Open fewer roots at once — each one adds to the graph the service holds.

If it still hangs after that, send the CPU profile from a lag spike and I’ll dig into your specific case.

Already used as like this config
the same issue

Thanks for trying those, @mohammad-aljamil. Since the config didn’t change anything, the next thing to try is replacing the built-in TypeScript server with the TypeScript 7 native server. It handles large multi-repo workspaces much better, and it takes the old server (and its background overhead on macOS) out of the picture entirely:

  1. Open the Extensions view, search for “TypeScript Native Preview” and install it.
  2. Press Cmd+Shift+P, run “Preferences: Open User Settings (JSON)” and add “js/ts.experimental.useTsgo”: true
  3. Press Cmd+Shift+P and run “Developer: Reload Window”.

If it still lags after that, press Cmd+Shift+P, run “Developer: Open Process Explorer” while it’s happening, and post a screenshot. That shows whether the language server, the extension host or the editor window is the busy one, so we can look at your specific case.