My cursor is stuck in grepping/seaching

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

Agent UI hangs on “Searching files” / Grepping / Reading / sometimes Thinking.
Plain chat still works (e.g. reply “还活着”).
Underlying Cursor Grep Service often finishes in a few ms, but the Agent Host tool call never returns tool_call.end until the user cancels (tens of seconds).
Fully quitting Cursor (no Cursor processes left) and starting a NEW chat in the SAME small folder makes tools complete in ~7–100ms again.
Opening only a small subfolder is NOT enough if the old Cursor process is still alive and previously hung.

Steps to Reproduce

  1. Open a large Java monorepo (or keep multiple windows including that repo).
  2. Ask Agent to work from an @file / PRD → UI shows Searching files.
  3. Hang. Cancel. Later open ONLY .../docs/daily in a new window WHILE the old process still running → Read/Glob still hang (~37s then cancel).
  4. Fully quit Cursor, reopen same docs/daily, new chat → Glob/Read/Grep succeed quickly.
  5. After working for a while in that new session, hang can return (including long “Thinking”).

Operating System

Windows 10/11

Version Information

  • Cursor: 3.27.22

For AI issues: add Request ID with privacy disabled

3f80a140-2f60-41c3-84f6-22c65721385e

Additional Information

Evidence from local logs (Agent Host)

  • Conversation 6067f1af-f81d-4720-ac99-3d5b1e3ed314 (repo root):
    Glob start 11:01:26 → user cancel 11:02:37 → tool_call.aborted durationMs=70739; no end.
    Same second: Grep Service queryContent completed in ~8ms.
  • Conversation 75a0064c-3ffb-49a4-826d-42a9804c5ed7 (ONLY docs/daily, same process as hung root):
    Read+Glob start → abort ~36848ms / retry Glob abort ~17616ms; GetDynamicTools still ~3–7ms.
  • Conversation 912cf9f9-65e8-4c9e-b848-084080806fa8 (same docs/daily AFTER full restart):
    Glob ~47–68ms, Read ~7–23ms, Grep ~64–106ms; no cancel/abort initially.
    Extra notes
  • No .cursorignore in the large repo (only .gitignore).
  • Multiple windows open in one process makes recurrence more likely.
  • Pure text turns work while tool turns hang → looks like local agent tool/result path stuck, not model/chat transport.
  • Reinstall previously did not help; full process restart does temporarily.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @xiaohe, thanks for the detailed timings. Next time it hangs, try Developer: Restart Extension Host from the Command Palette before a full quit. It’s faster, though it may not clear the hang.

Before you restart, could you grab these so we can pin down which step hangs?

  1. Any log lines containing still not completed after (Developer: Open Logs Folder, redact paths if you like)
  2. The Network Diagnostics result from Cursor Settings > Browser & Network

Then let us know whether Restart Extension Host cleared it. This isn’t intended behavior, and I’ll follow up here once we know more.

Thanks — I’ll try Developer: Restart Extension Host next hang (before a full quit) and report whether it clears.

Historical log hits for “still not completed after” (already on disk from earlier hangs):

  1. 2026-11-02 10:50:27.549
    [warning] [watchdog, LocalReadExecutor] permissionsService.shouldBlockFileRead still not completed after 3000ms
    (loop=local_loop, harness gen b951911e4476)

Nearby in request traces:
span_started name=“LocalReadExecutor.execute” (extension_host)
— I did not see a matching span_completed for that stuck attempt in the same window.

  1. 2026-10-29 17:44:03.094
    [warning] [watchdog, LocalReadExecutor] prepareImageForModel still not completed after 3000ms

Note: for the clearest Glob hangs (e.g. conv 6067f1af / 75a0064c), Agent Host shows tool_call.start then tool_call.aborted after tens of seconds with no tool_call.end, while Grep Service queryContent often finishes in a few ms. Those particular hangs did not always emit “still not completed after”.

I haven’t captured Network Diagnostics yet during a live hang; I’ll attach that + Restart Extension Host result on the next occurrence.