Extension host terminated unexpectedly (Windows 11)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor repeatedly shows the error “Extension host terminated unexpectedly 3 times within the last 5 minutes.” The extension host keeps restarting even when no workspace is opened and no user extensions are installed.

From Developer Tools → Console, I consistently see errors indicating that an internal Cursor module is missing:

Cannot find module …\cursor\resources\app\extensions\cursor-socket\out\main

and

Extension host (LocalProcess [role: retrieval-always-local]) terminated unexpectedly
Running extensions:
anysphere.cursor-always-local
anysphere.cursor-resolver
anysphere.cursor-retrieval

There are also related errors such as:

anysphere.cursor-socket failed: Cannot find module
Failed to resolve module specifier ‘@anysphere/context’

This suggests that the internal Cursor AI retrieval service fails to start because the cursor-socket module cannot be found, which causes the extension host to crash repeatedly.

Steps to Reproduce

Install Cursor on Windows 11

Launch Cursor normally

After startup, a notification appears saying:
“Extension host terminated unexpectedly 3 times within the last 5 minutes.”

Opening Developer Tools → Console shows the missing cursor-socket module errors.

The issue occurs even with no workspace opened.

Expected Behavior

Cursor should start normally without the extension host crashing repeatedly.

Operating System

Windows 10/11

Version Information

Version: 2.6.12 (user setup)
VSCode Version: I .105.1
Commit: 1917e900aOc4b0111 dc7975777cfff60853059dO
Date: (1 day ago)
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2231.22-electron.O
OS: Windows NTx64 10.0.26200

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the detailed report. The Cannot find module cursor-socket error usually means the install is corrupted or incomplete, so the core internal extensions are missing files they need to run.

Try a clean reinstall:

  • Fully close Cursor
  • Uninstall it via Windows Settings > Apps
  • Delete leftover files:
    • C:\Users\<YourUser>\AppData\Local\Programs\cursor\
    • %APPDATA%\Cursor\
  • Download the latest version from Cursor · Download
  • Launch Cursor and check if the extension host stays stable

A couple more things to check:

  • Is your antivirus (Windows Defender or a third party tool) quarantining files in the Cursor install folder? Some AV tools flag new or unknown binaries. Check your quarantine log.
  • Was this a fresh install of 2.6.12, or an update from an older version?

Let me know how it goes.

I already tried a clean reinstall, but the issue still persists. I fully closed Cursor, uninstalled it, deleted C:\Users\<my-user>\AppData\Local\Programs\cursor\ and %APPDATA%\Cursor\, then installed the latest version again.

I also disabled Windows Defender and confirmed there are no third-party antivirus tools or quarantined files.

This was a fresh install of version 2.6.12, not an update.

Unfortunately, the “Extension host terminated unexpectedly” error and the Cannot find module cursor-socket error still appear.

This issue suddenly happend today morning, it used to work well till yesterday

I have the same problem. Cursor is showing me “The extension host terminated unexpectedly” and nothing works because of it. In my opinion, Cursor is one of the worst tools…. I honestly don’t understand what kind of people develop something like this… My subscription is about to expire and I’m cancelling — this tool would be too expensive even if it were free.

This specific Cannot find module cursor-socket issue was fixed in version 2.6.18. You’re on 2.6.12, so please download the latest version from https://cursor.com/download and check if the error is gone.

If the extension host still crashes after updating, try this:

  • Cursor Settings (not VS Code settings) > Indexing & Docs > turn off Codebase Indexing and Index Repositories for Instant Grep (BETA)
  • Restart Cursor

Another user with the same crash found that “Instant Grep (BETA)” was the cause on large projects: Extension host terminated unexpectedly always - #6 by facio313

Let me know how it goes after updating.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.