Cursor agents not working, Any help?

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

The agent execution provider did not respond in time. This may indicate the extension host is not running or is unresponsive. Request ID: e7b6b463-1524-4247-adbd-d3e0a3d2549a

Steps to Reproduce

I wrote what to do and that message appears every time. Nothing works. Tried PC reset, agent window reset.

Operating System

Windows 10/11

Version Information

about agent not working in terminal

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

I checked the Request ID you sent, and it never reached our servers. That means the part of Cursor that launches Agent requests is getting stuck on your machine before it even sends anything. On Windows, this most often happens when PowerShell isn’t available or is blocked, for example by security software or a system policy. It doesn’t look related to your settings specifically.

What helped other Windows users recently is switching Cursor to Git Bash as the default terminal:

  • Install Git for Windows if you don’t have it yet.
  • Press Ctrl+Shift+P, run Preferences: Open User Settings (JSON), and add:
"terminal.integrated.profiles.windows": {
  "Git Bash": { "path": "C:\\Program Files\\Git\\bin\\bash.exe" }
},
"terminal.integrated.defaultProfile.windows": "Git Bash"
  • Fully close and reopen Cursor, a real restart, not Reload Window.

If that doesn’t help, please send two things so we can dig deeper:

  • Your Cursor version menu > About Cursor > Copy
  • Extension Host logs View > Output, then select Extension Host in the dropdown, especially any lines mentioning cursor-agent-exec or PowerShell

Let me know how it goes.

Okay, I’ll try that. Thanks <3. If the problem persists, I’ll get back to you.

Like this? settings.json:

“terminal.integrated.profiles.windows”: {

“Git Bash”: { “path”: “C:\\Program Files\\Git\\bin\\bash.exe” }

},

“terminal.integrated.defaultProfile.windows”: “Git Bash”

{

"window.autoDetectColorScheme": true,

"cursor.composer.usageSummaryDisplay": "always",

"workbench.preferredLightColorTheme": "Cursor Dark"

}

Almost, but the structure is slightly off. All settings must be inside a single { } block, separated by commas. Your terminal settings ended up outside, so the JSON won’t apply.

Here’s what the full file should look like:

{
    "window.autoDetectColorScheme": true,
    "cursor.composer.usageSummaryDisplay": "always",
    "workbench.preferredLightColorTheme": "Cursor Dark",
    "terminal.integrated.profiles.windows": {
        "Git Bash": { "path": "C:\\Program Files\\Git\\bin\\bash.exe" }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash"
}

A couple of notes:

  • In the path to bash.exe, you need double backslashes \\, not more. Make sure the path matches where Git for Windows is actually installed.
  • After editing, fully close and reopen Cursor. Do a real restart, not Reload Window.

Let me know how it goes. If the error is still there, send your Cursor version Menu > About Cursor > Copy and the Extension Host logs View > Output, then pick Extension Host in the dropdown.

Sometimes it works. It is strange

The agent execution provider did not respond in time. This may indicate the extension host is not running or is unresponsive. Request ID: 42c46d04-3938-4ad8-97d4-af22f5086280

Version: 3.17.21 (user setup)
VS Code Extension API: 1.128.0
Commit: 8f2a112cb2845a97b75fd932ea5c470579ca4060
Date: 2026-08-25T01:05:08.089Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26200

and my settings.json:
{

“window.autoDetectColorScheme”: true,

“cursor.composer.usageSummaryDisplay”: “always”,

“workbench.preferredLightColorTheme”: “Cursor Dark”,

“terminal.integrated.profiles.windows”: {

“Git Bash”: { “path”: “C:\\Program Files\\Git\\bin\\bash.exe” }

},

“terminal.integrated.defaultProfile.windows”: “Git Bash”

}

C:\Program Files\Git\bin - this is the path, where bash.exe is. So the path is correct.

Based on your settings.json, everything is set up correctly now, and since it mostly started working, that’s what we were aiming for.

I checked the new Request ID, and it also didn’t reach our servers. That means the remaining failures are still happening on your machine, before the request even goes out. Since it works most of the time now, it looks like the component that runs Agent requests sometimes starts up slowly. This is not the same terminal issue as before.

To narrow this down, can you help with two things?

  • Does it mostly fail right after opening Cursor or a new Agent window, and then a retry works after 1 to 2 minutes? Or does it also happen in the middle of a session that was already working?
  • Next time it happens, please grab the Extension Host logs right away: View > Output, pick Extension Host in the dropdown, and paste everything around the failure time, especially lines with cursor-agent-exec.

For now, if it fails more often right after startup, try waiting 30 to 60 seconds after opening Cursor before sending your first message. Also, antivirus or other security software can scan Cursor on startup and slow this component down. If you use one, add an exception for Cursor.

Let me know how it goes.

I tried it like 20 times. restart cursor. Everything. But nothing works. But midnight it worked..

2026-08-30 13:32:11.263 [info] Extension host with pid 40680 started

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] Detecting sandbox support…

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] Platform: win32, Shell type: unknown

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] dirname: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] Sandbox helper path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] process.resourcesPath: C:\Users\micka\AppData\Local\Programs\cursor\resources

2026-08-30 13:32:11.263 [info] [ExtHostShellExec] process.execPath: C:\Users\micka\AppData\Local\Programs\cursor\Cursor.exe

2026-08-30 13:32:11.264 [info] [ExtHostShellExec] No local workspace folder to probe from (folders=0); probing from the ext host cwd, which may not reflect where commands run

2026-08-30 13:32:11.264 [info] [ExtHostShellExec] Probing sandbox support from C:\Users\micka\AppData\Local\Programs\cursor

2026-08-30 13:32:11.264 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check…

2026-08-30 13:32:11.264 [info] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.264 [info] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true

2026-08-30 13:32:11.264 [info] [shell-exec:sandbox] [isSandboxHelperSupported] win32: returning false (proxy-only, no filesystem sandbox)

2026-08-30 13:32:11.264 [info] [ExtHostShellExec] Sandbox support detected: false, platform: win32, kernelVersion: N/A

2026-08-30 13:32:11.264 [info] [ExtHostShellExec] Default shell changed: C:\Program Files\Git\bin\bash.exe

2026-08-30 13:32:11.276 [info] ExtensionService#_doActivateExtension anysphere.cursor-polyfills-remote, startup: false, activationEvent: ‘*’

2026-08-30 13:32:11.291 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: false, activationEvent: ‘*’, root cause: vscode.git

2026-08-30 13:32:11.297 [info] Extension activated success: anysphere.cursor-polyfills-remote — 15ms (code loading: 15ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:11.297 [info] Extension activated success: vscode.git-base — 5ms (code loading: 5ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:11.297 [info] ExtensionService#_doActivateExtension vscode.git, startup: false, activationEvent: ‘*’

2026-08-30 13:32:11.325 [info] ExtensionService#_doActivateExtension vscode.github, startup: false, activationEvent: ‘*’

2026-08-30 13:32:11.333 [info] Extension activated success: vscode.github — 7ms (code loading: 6ms, activate call: 1ms, activate resolved: 0ms)

2026-08-30 13:32:11.440 [info] Extension activated success: vscode.git — 136ms (code loading: 27ms, activate call: 1ms, activate resolved: 108ms)

2026-08-30 13:32:11.441 [info] Eager extensions activated

2026-08-30 13:32:11.450 [info] ExtensionService#_doActivateExtension cursor.cursor-browser-automation, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.454 [info] ExtensionService#_doActivateExtension anysphere.cursor-commits, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.515 [info] ExtensionService#_doActivateExtension anysphere.cursor-deeplink, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.535 [info] Extension host with pid 33496 started

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] Detecting sandbox support…

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] Platform: win32, Shell type: unknown

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] dirname: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] Sandbox helper path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] process.resourcesPath: C:\Users\micka\AppData\Local\Programs\cursor\resources

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] process.execPath: C:\Users\micka\AppData\Local\Programs\cursor\Cursor.exe

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] No local workspace folder to probe from (folders=0); probing from the ext host cwd, which may not reflect where commands run

2026-08-30 13:32:11.535 [info] [ExtHostShellExec] Probing sandbox support from C:\Users\micka\AppData\Local\Programs\cursor

2026-08-30 13:32:11.536 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check…

2026-08-30 13:32:11.536 [info] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.536 [info] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true

2026-08-30 13:32:11.536 [info] [shell-exec:sandbox] [isSandboxHelperSupported] win32: returning false (proxy-only, no filesystem sandbox)

2026-08-30 13:32:11.536 [info] [ExtHostShellExec] Sandbox support detected: false, platform: win32, kernelVersion: N/A

2026-08-30 13:32:11.536 [info] [ExtHostShellExec] Default shell changed: C:\Program Files\Git\bin\bash.exe

2026-08-30 13:32:11.544 [info] Eager extensions activated

2026-08-30 13:32:11.548 [info] ExtensionService#_doActivateExtension anysphere.cursor-always-local, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.554 [info] Extension host with pid 28336 started

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Detecting sandbox support…

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Platform: win32, Shell type: unknown

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] dirname: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Sandbox helper path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] process.resourcesPath: C:\Users\micka\AppData\Local\Programs\cursor\resources

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] process.execPath: C:\Users\micka\AppData\Local\Programs\cursor\Cursor.exe

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] No local workspace folder to probe from (folders=0); probing from the ext host cwd, which may not reflect where commands run

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Probing sandbox support from C:\Users\micka\AppData\Local\Programs\cursor

2026-08-30 13:32:11.554 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check…

2026-08-30 13:32:11.554 [info] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.554 [info] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true

2026-08-30 13:32:11.554 [info] [shell-exec:sandbox] [isSandboxHelperSupported] win32: returning false (proxy-only, no filesystem sandbox)

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Sandbox support detected: false, platform: win32, kernelVersion: N/A

2026-08-30 13:32:11.554 [info] [ExtHostShellExec] Default shell changed: C:\Program Files\Git\bin\bash.exe

2026-08-30 13:32:11.558 [info] ExtensionService#_doActivateExtension anysphere.cursor-explorer, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.560 [info] Eager extensions activated

2026-08-30 13:32:11.561 [info] ExtensionService#_doActivateExtension anysphere.cursor-retrieval, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.561 [info] ExtensionService#_doActivateExtension anysphere.cursor-mcp, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.582 [info] Extension host with pid 26120 started

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Detecting sandbox support…

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Platform: win32, Shell type: unknown

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] dirname: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Sandbox helper path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] process.resourcesPath: C:\Users\micka\AppData\Local\Programs\cursor\resources

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] process.execPath: C:\Users\micka\AppData\Local\Programs\cursor\Cursor.exe

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] No local workspace folder to probe from (folders=0); probing from the ext host cwd, which may not reflect where commands run

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Probing sandbox support from C:\Users\micka\AppData\Local\Programs\cursor

2026-08-30 13:32:11.582 [info] [shell-exec:sandbox] [isSandboxHelperSupported] Starting sandbox support check…

2026-08-30 13:32:11.582 [info] [shell-exec:sandbox] [checkBinaryAvailable] Resolved binary path: c:\Users\micka\AppData\Local\Programs\cursor\resources\app\resources\helpers\cursorsandbox.exe

2026-08-30 13:32:11.582 [info] [shell-exec:sandbox] [checkBinaryAvailable] Binary path exists: true

2026-08-30 13:32:11.582 [info] [shell-exec:sandbox] [isSandboxHelperSupported] win32: returning false (proxy-only, no filesystem sandbox)

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Sandbox support detected: false, platform: win32, kernelVersion: N/A

2026-08-30 13:32:11.582 [info] [ExtHostShellExec] Default shell changed: C:\Program Files\Git\bin\bash.exe

2026-08-30 13:32:11.587 [info] ExtensionService#_doActivateExtension anysphere.cursor-checkout, startup: false, activationEvent: ‘*’

2026-08-30 13:32:11.594 [info] Extension activated success: anysphere.cursor-checkout — 6ms (code loading: 6ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:11.595 [info] Eager extensions activated

2026-08-30 13:32:11.595 [info] ExtensionService#_doActivateExtension anysphere.cursor-agent-exec, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.711 [info] Extension activated success: anysphere.cursor-retrieval — 146ms (code loading: 108ms, activate call: 1ms, activate resolved: 37ms)

2026-08-30 13:32:11.734 [info] ExtensionService#_doActivateExtension anysphere.cursor-resolver-helper, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.769 [info] ExtensionService#_doActivateExtension anysphere.cursor-shadow-workspace, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.821 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.824 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.832 [info] ExtensionService#_doActivateExtension anysphere.remote-ssh, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.940 [info] ExtensionService#_doActivateExtension anysphere.remote-wsl, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.977 [info] ExtensionService#_doActivateExtension anysphere.cursor-socket, startup: false, activationEvent: ‘onStartupFinished’

2026-08-30 13:32:11.996 [info] Extension activated success: anysphere.cursor-always-local — 435ms (code loading: 428ms, activate call: 4ms, activate resolved: 3ms)

2026-08-30 13:32:11.997 [info] Extension activated success: anysphere.cursor-socket — 4ms (code loading: 4ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:11.999 [info] Extension activated success: cursor.cursor-browser-automation — 14ms (code loading: 4ms, activate call: 0ms, activate resolved: 10ms)

2026-08-30 13:32:12.011 [info] Extension activated success: anysphere.cursor-commits — 62ms (code loading: 61ms, activate call: 0ms, activate resolved: 1ms)

2026-08-30 13:32:12.011 [info] Extension activated success: anysphere.cursor-deeplink — 43ms (code loading: 42ms, activate call: 1ms, activate resolved: 0ms)

2026-08-30 13:32:12.012 [info] [ExtHostCursorExplorerProviderService] ExplorerProvider registered in ext host

2026-08-30 13:32:12.012 [info] Extension activated success: anysphere.cursor-explorer — 2ms (code loading: 2ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:12.013 [info] Extension activated success: anysphere.cursor-resolver-helper — 35ms (code loading: 35ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:12.013 [info] Extension activated success: anysphere.cursor-shadow-workspace — 50ms (code loading: 50ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:12.014 [info] Extension activated success: vscode.debug-auto-launch — 3ms (code loading: 3ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:12.015 [info] Extension activated success: vscode.merge-conflict — 9ms (code loading: 7ms, activate call: 2ms, activate resolved: 0ms)

2026-08-30 13:32:12.018 [info] Extension activated success: anysphere.remote-ssh — 111ms (code loading: 108ms, activate call: 3ms, activate resolved: 0ms)

2026-08-30 13:32:12.021 [info] Extension activated success: anysphere.remote-wsl — 51ms (code loading: 49ms, activate call: 2ms, activate resolved: 0ms)

2026-08-30 13:32:12.023 [info] [ExtHostCursorExplorerProviderService] Main thread provider registration acknowledged

2026-08-30 13:32:12.027 [info] Extension activated success: anysphere.cursor-mcp — 188ms (code loading: 173ms, activate call: 0ms, activate resolved: 15ms)

2026-08-30 13:32:12.206 [info] Extension activated success: anysphere.cursor-agent-exec — 610ms (code loading: 559ms, activate call: 13ms, activate resolved: 38ms)

2026-08-30 13:32:14.946 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: ‘onAuthenticationRequest:cursor-github’

2026-08-30 13:32:14.951 [info] Extension activated success: vscode.github-authentication — 5ms (code loading: 5ms, activate call: 0ms, activate resolved: 0ms)

2026-08-30 13:32:17.567 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: ‘onLanguage’

2026-08-30 13:32:17.588 [info] Extension activated success: vscode.emmet — 21ms (code loading: 15ms, activate call: 6ms, activate resolved: 0ms)

2026-08-30 13:33:35.572 [warning] [ExtHostCursor] Failed to push plugins snapshot [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

2026-08-30 13:33:35.583 [warning] [ExtHostCursor] Failed to push plugins snapshot [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

2026-08-30 13:33:40.591 [warning] [ExtHostCursor] Failed to push plugins snapshot [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

Thanks for the logs, they give a key clue.

Good news: the part that used to crash is now fine. The logs show that anysphere.cursor-agent-exec starts successfully and quickly (610 ms). So the terminal or extension host issue we fixed with the Git Bash profile is gone.

But then the logs have this line:

[ExtHostCursor] Failed to push plugins snapshot [unavailable] getaddrinfo ENOTFOUND api2.cursor.sh

getaddrinfo ENOTFOUND means your machine sometimes can’t resolve the address of our servers at api2.cursor.sh. That’s why the request doesn’t go out at all (the Request ID never reaches us), and that’s why it works only sometimes, like it worked at midnight but not now. This points to a network or DNS issue on your network or machine, not Cursor settings.

What to try, in order:

  1. Cursor Settings > Network > Run Diagnostics, then send what errors it shows.
  2. Disable HTTP/2: App Settings Ctrl+, > search for HTTP/2 > turn on Disable HTTP/2. This often helps on Windows, especially with VPN, proxy, or corporate networks.
  3. If you use a VPN, proxy, or antivirus or firewall, try turning it off temporarily and test again. Security software on Windows often breaks DNS resolving.
  4. Quick DNS test: connect to another network, like phone hotspot, and try again. If it works there consistently, the issue is your local DNS.
  5. You can also flush DNS cache by running ipconfig /flushdns in a terminal, and or temporarily switch DNS to 8.8.8.8 or 1.1.1.1.

Let me know what Run Diagnostics shows and whether switching networks helps, then we can narrow down where the DNS resolving is failing.

disabled /2. Now on /1.1. I dont use vpn. Turned of antivirus avast but still nothing.
4. cant test bc i cant connect to another network :confused: like phone hotspot etc. Only with ethernet. But its strange that in night its working fine (like in 9/10 cases)

Shared Text zlt0qrpf - ShareText - i couldnt send logs bc of to much links

It didn’t work. Restarted the cursor twice and now it works. But I think it will stop working pretty soon :joy:

(after disabling http/2, some things in diagnosis didnt make it. I think one of them was DNS, Auth, SSL?). Restarted cursor again and diagnosis was fine

This is a useful result. Look, the diagnostics are green on every item in both runs: DNS, HTTP/2, SSL, API, Chat, Agent. That means when everything works, the path to our servers is fully healthy. The problem is that the diagnostics only capture the moment when they run, and your issue is intermittent. This time it just didn’t happen at the same time. So you need to run it exactly when Agent fails, and then we’ll see what’s actually failing.

But there’s an important detail in the logs. In the DNS test it shows:

Host: api2.cursor.sh
Servers: 127.0.0.1

127.0.0.1 is a local DNS resolver. That means on your machine, name requests go through some local DNS service first, not directly to the internet. If that local resolver sometimes hangs or crashes, you get exactly what we’re seeing: getaddrinfo ENOTFOUND api2.cursor.sh from time to time, works at night, fixed by a restart. This strongly points to the source.

What to check:

  • See what is listening on port 53 locally. In an admin terminal:

    netstat -ano | findstr :53
    

    Then use the PID in Task Manager to find which process it is. Often it’s a local DNS proxy, a security software component, a VPN, or something like dnscrypt or Acrylic.

  • Try removing the local resolver from the chain. In your network adapter IPv4 settings, set DNS manually: Preferred 1.1.1.1, Alternate 8.8.8.8, and make sure it is NOT set to 127.0.0.1. For IPv6, either disable it or set 2606:4700:4700::1111. Then run ipconfig /flushdns.

  • If you find some third-party DNS service bound to 127.0.0.1:53, try stopping it temporarily and see if the failures go away.

And like before, if you catch the failure, immediately run nslookup api2.cursor.sh in the terminal. If at that moment nslookup also can’t resolve it, that’s a 100% confirmation it’s the local DNS. Send what netstat and nslookup show at the time of the failure.