Extension host (retrieval-always-local) crashes repeatedly on Windows

Hey, this is a known Windows issue. retrieval-always-local crashes with 0xC0000005 because of a regression in cursor-socket.

Two workarounds:

  1. Fix cursor-socket

Open Command Prompt as admin:

cd "%LOCALAPPDATA%\Programs\cursor\resources\app\extensions\cursor-socket"
xcopy dist out\ /E /I

If Cursor is installed in C:\Program Files\cursor:

cd "C:\Program Files\cursor\resources\app\extensions\cursor-socket"
xcopy dist out\ /E /I

Restart Cursor.

  1. If it still crashes, disable Instant Grep
  • Cursor Settings (not VS Code settings) > Indexing & Docs
  • Turn off “Index Repositories for Instant Grep (BETA)”
  • Restart Cursor

For a few users, doing both steps fixed it on 2.6.21. More details here: The problem “Extension host terminated unexpectedly 3 times within the last 5 minutes” remain in 2.6.21 - #3 by deanrie

Note that you’ll need to run xcopy again after every Cursor update until the fix ships in a build. The team is aware of this regression.

Let me know if it helped.