Extension host terminated unexpectedly no matter what i try

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I start cursor, and receive this error

Steps to Reproduce

Open cursor, wait a minute, and the error appears

Expected Behavior

I want to be able to open a folder, install claude extension, and work in that folder

Operating System

Windows 10/11

Version Information

IDE 2.6.18

Additional Information

I’ve installed clean versions at the system level, including deleting all folders after uninstall. I’ve disabled folder indexing. I have no extensions installed. I’ve added exceptions to MS Defender. I don’t even open a folder. I am not using Cursor against a code base, simply against a folder structure with a writing project. Here is the output from developer tools.

anysphere/context unavailable — tracing will be disabled: TypeError: Failed to resolve module specifier ‘@anysphere/context’
at extensionHostWorkerMain.js:155:144140
(anonymous) @ extensionHostWorkerMain.js:155
workbench.desktop.main.js:46676 [agent_exec] Failed to sync managed skills from dashboard {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.6.18’, error: ‘Canceled: Canceled’}
_log @ workbench.desktop.main.js:46676
warn @ workbench.desktop.main.js:46676
$logStructuredWarn @ workbench.desktop.main.js:43779
_doInvokeHandler @ workbench.desktop.main.js:46616
_invokeHandler @ workbench.desktop.main.js:46616
_receiveRequest @ workbench.desktop.main.js:46616
_receiveOneMessage @ workbench.desktop.main.js:46616
(anonymous) @ workbench.desktop.main.js:46616
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:49752
workbench.desktop.main.js:64 ERR [Extension Host] (node:23060) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use Cursor --trace-deprecation ... to show where the warning was created)
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:48653
UMy @ workbench.desktop.main.js:43744
$logExtensionHostMessage @ workbench.desktop.main.js:43744
_doInvokeHandler @ workbench.desktop.main.js:46616
_invokeHandler @ workbench.desktop.main.js:46616
_receiveRequest @ workbench.desktop.main.js:46616
_receiveOneMessage @ workbench.desktop.main.js:46616
(anonymous) @ workbench.desktop.main.js:46616
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:49752
workbench.desktop.main.js:43744 [Extension Host] (node:23060) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use Cursor --trace-deprecation ... to show where the warning was created)
FMy @ workbench.desktop.main.js:43744
$logExtensionHostMessage @ workbench.desktop.main.js:43744
_doInvokeHandler @ workbench.desktop.main.js:46616
_invokeHandler @ workbench.desktop.main.js:46616
_receiveRequest @ workbench.desktop.main.js:46616
_receiveOneMessage @ workbench.desktop.main.js:46616
(anonymous) @ workbench.desktop.main.js:46616
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:49752
workbench.desktop.main.js:49748 Extension host (LocalProcess [role: retrieval-always-local] pid: 23060) terminated unexpectedly. Code: 18446744072635810000, Signal: unknown
_onExtensionHostCrashed @ workbench.desktop.main.js:49748
_onExtensionHostCrashed @ workbench.desktop.main.js:49753
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:49748
(anonymous) @ workbench.desktop.main.js:49748
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
_onExtHostProcessExit @ workbench.desktop.main.js:49752
(anonymous) @ workbench.desktop.main.js:49752
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
l @ workbench.desktop.main.js:43761
onResponse @ workbench.desktop.main.js:43761
onBuffer @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:43760
_deliver @ workbench.desktop.main.js:55
_deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
ne @ workbench.desktop.main.js:53
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:64 ERR Extension host (LocalProcess [role: retrieval-always-local] pid: 23060) terminated unexpectedly. The following extensions were running: anysphere.cursor-always-local, anysphere.cursor-resolver, anysphere.cursor-retrieval
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:48653
_logExtensionHostCrash @ workbench.desktop.main.js:49748
_onExtensionHostCrashed @ workbench.desktop.main.js:49753
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:49748
(anonymous) @ workbench.desktop.main.js:49748
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
_onExtHostProcessExit @ workbench.desktop.main.js:49752
(anonymous) @ workbench.desktop.main.js:49752
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
l @ workbench.desktop.main.js:43761
onResponse @ workbench.desktop.main.js:43761
onBuffer @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:43760
_deliver @ workbench.desktop.main.js:55
_deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
ne @ workbench.desktop.main.js:53
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:46676 [ext_host_cursor] Extension host crashed undefined {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.6.18’, code: 18446744072635810000, …}
error @ workbench.desktop.main.js:46676
_onExtensionHostCrashed @ workbench.desktop.main.js:49753
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:49748
(anonymous) @ workbench.desktop.main.js:49748
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
_onExtHostProcessExit @ workbench.desktop.main.js:49752
(anonymous) @ workbench.desktop.main.js:49752
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
l @ workbench.desktop.main.js:43761
onResponse @ workbench.desktop.main.js:43761
onBuffer @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:43760
_deliver @ workbench.desktop.main.js:55
_deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
ne @ workbench.desktop.main.js:53
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:48641 Extension host terminated unexpectedly 3 times within the last 5 minutes.
onDidChangeNotification @ workbench.desktop.main.js:48641
(anonymous) @ workbench.desktop.main.js:48641
_deliver @ workbench.desktop.main.js:55
_deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
addNotification @ workbench.desktop.main.js:45754
notify @ workbench.desktop.main.js:46613
prompt @ workbench.desktop.main.js:46613
_onExtensionHostCrashed @ workbench.desktop.main.js:49753
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:49748
(anonymous) @ workbench.desktop.main.js:49748
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
_onExtHostProcessExit @ workbench.desktop.main.js:49752
(anonymous) @ workbench.desktop.main.js:49752
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
l @ workbench.desktop.main.js:43761
onResponse @ workbench.desktop.main.js:43761
onBuffer @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:43760
deliver @ workbench.desktop.main.js:55
deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
ne @ workbench.desktop.main.js:53
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:64 WARN [MainThreadCursor] Failed to flush aggregating provider batch Canceled: Canceled
at ybe (workbench.desktop.main.js:28:2426)
at workbench.desktop.main.js:46616:18900
at Array.forEach ()
at ZDt.dispose (workbench.desktop.main.js:46616:18741)
at tOa.dispose (workbench.desktop.main.js:46620:9663)
at zw
.dispose (workbench.desktop.main.js:49748:13932)
at jw
.stopAllInReverse (workbench.desktop.main.js:49748:13066)
at async Mid._doStopExtensionHosts (workbench.desktop.main.js:49747:78673)
warn @ workbench.desktop.main.js:64
warn @ workbench.desktop.main.js:64
warn @ workbench.desktop.main.js:48653
onError @ workbench.desktop.main.js:43779
(anonymous) @ workbench.desktop.main.js:43779
Promise.then
catch @ workbench.desktop.main.js:46616
flush @ workbench.desktop.main.js:43779
(anonymous) @ workbench.desktop.main.js:43779
setTimeout
e.setTimeout @ workbench.desktop.main.js:46067
add @ workbench.desktop.main.js:43779
distribution @ workbench.desktop.main.js:43779
distribution @ workbench.desktop.main.js:34272
_emitIpcMetrics @ workbench.desktop.main.js:43779
_tracedAsyncIpc @ workbench.desktop.main.js:43779
await in _tracedAsyncIpc
$getMcpLeasePrompts @ workbench.desktop.main.js:43779
_doInvokeHandler @ workbench.desktop.main.js:46616
_invokeHandler @ workbench.desktop.main.js:46616
_receiveRequest @ workbench.desktop.main.js:46616
_receiveOneMessage @ workbench.desktop.main.js:46616
(anonymous) @ workbench.desktop.main.js:46616
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:49752
workbench.desktop.main.js:50075 [TerminalExecutionServiceProxy] v3 health check failed after 45012ms: Error: Command execution timeout
at workbench.desktop.main.js:50075:5970
_healthCheckV3 @ workbench.desktop.main.js:50075
workbench.desktop.main.js:64 ERR [MainThreadShellExec] Error disposing session 6b6e2784-4bff-4708-878b-aa3b4320d94c: Canceled: Canceled
at new eEw (workbench.desktop.main.js:46616:16806)
at ZDt._remoteCall (workbench.desktop.main.js:46616:23489)
at r..s.charCodeAt.r. (workbench.desktop.main.js:46616:20100)
at eTt.disposeSession (workbench.desktop.main.js:43779:130280)
at TRu.disposeSession (workbench.desktop.main.js:43779:132161)
at Osd._healthCheckV3 (workbench.desktop.main.js:50075:4699)
at async Osd._updateDelegateBasedOnSettings (workbench.desktop.main.js:50075:6809)
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:48653
disposeSession @ workbench.desktop.main.js:43779
await in disposeSession
disposeSession @ workbench.desktop.main.js:43779
_healthCheckV3 @ workbench.desktop.main.js:50075
workbench.desktop.main.js:50075 [TerminalExecutionServiceProxy] Cannot switch to v3: health check failed
_updateDelegateBasedOnSettings @ workbench.desktop.main.js:50075
workbench.desktop.main.js:50075 [TerminalExecutionServiceProxy] v3 health check failed after 45009ms: Error: Command execution timeout
at workbench.desktop.main.js:50075:5970
_healthCheckV3 @ workbench.desktop.main.js:50075
workbench.desktop.main.js:64 ERR [MainThreadShellExec] Error disposing session fed616aa-ea60-4f74-a9d7-16bb4027d4ca: Canceled: Canceled
at new eEw (workbench.desktop.main.js:46616:16806)
at ZDt._remoteCall (workbench.desktop.main.js:46616:23489)
at r..s.charCodeAt.r. (workbench.desktop.main.js:46616:20100)
at eTt.disposeSession (workbench.desktop.main.js:43779:130280)
at TRu.disposeSession (workbench.desktop.main.js:43779:132161)
at Osd._healthCheckV3 (workbench.desktop.main.js:50075:4699)
at async Osd._updateDelegateBasedOnSettings (workbench.desktop.main.js:50075:6809)
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:64
error @ workbench.desktop.main.js:48653
disposeSession @ workbench.desktop.main.js:43779
await in disposeSession
disposeSession @ workbench.desktop.main.js:43779
_healthCheckV3 @ workbench.desktop.main.js:50075
workbench.desktop.main.js:50075 [TerminalExecutionServiceProxy] Cannot switch to v3: health check failed
_updateDelegateBasedOnSettings @ workbench.desktop.main.js:50075
workbench.desktop.main.js:46883 Failed to flush analytics events: Canceled: Canceled
at t (workbench.desktop.main.js:43779:43827)
at workbench.desktop.main.js:43779:45277
at rkc (workbench.desktop.main.js:61:56243)
at Ube (workbench.desktop.main.js:61:56204)
at Object.unary (workbench.desktop.main.js:43779:45221)
at Object.batch (workbench.desktop.main.js:34078:4394)
at d5u.flushAll (workbench.desktop.main.js:46883:1387)
flushAll @ workbench.desktop.main.js:46883
await in flushAll
(anonymous) @ workbench.desktop.main.js:46882
workbench.desktop.main.js:48620 Canceled: Canceled
at t (workbench.desktop.main.js:43779:43827)
at workbench.desktop.main.js:43779:45277
at rkc (workbench.desktop.main.js:61:56243)
at Ube (workbench.desktop.main.js:61:56204)
at Object.unary (workbench.desktop.main.js:43779:45221)
at Object.markPrivacy (workbench.desktop.main.js:34078:4394)
at Tfa.initialRetryTimeMs (workbench.desktop.main.js:48620:22930)
at async Tfa (workbench.desktop.main.js:34157:610293)
at async workbench.desktop.main.js:48620:22478
(anonymous) @ workbench.desktop.main.js:48620
await in (anonymous)
oc @ workbench.desktop.main.js:131
(anonymous) @ workbench.desktop.main.js:48620
(anonymous) @ workbench.desktop.main.js:34157
setTimeout
e.setTimeout @ workbench.desktop.main.js:46067
(anonymous) @ workbench.desktop.main.js:34157
sendPrivacySettings @ workbench.desktop.main.js:48621
(anonymous) @ workbench.desktop.main.js:48620
_deliver @ workbench.desktop.main.js:55
_deliverQueue @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
registerConnectTransportProvider @ workbench.desktop.main.js:34157
$registerAiConnectTransportProvider @ workbench.desktop.main.js:43779
_doInvokeHandler @ workbench.desktop.main.js:46616
_invokeHandler @ workbench.desktop.main.js:46616
_receiveRequest @ workbench.desktop.main.js:46616
_receiveOneMessage @ workbench.desktop.main.js:46616
(anonymous) @ workbench.desktop.main.js:46616
_deliver @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:55
fire @ workbench.desktop.main.js:43761
(anonymous) @ workbench.desktop.main.js:49752

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue with the retrieval-always-local extension host, and we’re seeing it for several users on the latest versions.

Your logs look typical. It’s a native crash in the extension host with code 18446744072635810000, and @anysphere/context also isn’t resolving. Let’s try a few things:

  1. Turn off Codebase Indexing:
    Cursor Settings (not VS Code settings) > Indexing & Docs > turn off Codebase Indexing. If you see Index Repositories for Instant Grep (BETA), turn that off too. Then restart Cursor.

I know you said you’re not even opening a folder, but indexing can still try to use data from previous sessions.

  1. If that doesn’t help, try a temporary profile:
cursor --profile-temp

This will start Cursor with a clean state. If it works there, the issue is likely a corrupted state.

  1. If it still crashes with the temp profile, check cursor-socket:
    Open Command Prompt and run:
dir "%LOCALAPPDATA%\Programs\cursor\resources\app\extensions\cursor-socket\"

Send the output here. For another Windows user, the issue was that the out/ folder was missing inside cursor-socket.

Let me know what helped, or what didn’t.

Thanks for the quick reply. I had turned off Index New Folders and verified it is off. I also had turned off Index Repositories for Instant Grep, but it keeps reverting to on (just fyi). I started Cursor with a temp profile, and had the same issue. When I did a fresh install, I used the system installer, as someone indicated that could fix the issue. I don’t have a %LOCALAPPDATA%\Programs\cursor\resources\app\extensions\cursor-socket\ folder.

The contents of my C:\Program Files\cursor\resources\app\extensions\cursor-socket are:

  • package (JSON source file)
  • extension.webpack.config.js
  • dist\main.js

Is that helpful and the information you were looking for?

I did a clean reinstall of version 2.6.14, and the user version. Same results all around.

I’m facing the same problem. I’ve already tried everything I could: cleared the cache, installed previous versions, etc., and nothing makes Cursor work. It’s unusable.