Local Windows workspaces on the same machine work correctly.
What I already tested
Fresh clone of the repository: same problem
Completely empty WSL folder: same problem
Different Cursor versions: 3.23.23 and 3.22: same problem
Different anysphere.remote-wsl versions: same problem
Started Cursor with --disable-extensions: same problem
Started Cursor with a completely clean user profile via --user-data-dir: same problem
Recreated ~/.cursor-server: same problem
Network Diagnostics initially reported streaming buffering, but after switching HTTP compatibility mode the diagnostics became fully green; Agent still fails
Resolve-DnsName api2.cursor.sh on Windows succeeds
Resolve-DnsName agentn.global.api5.cursor.sh on Windows succeeds
Failed to patch code.sh launcher:
ENOENT: no such file or directory, open
‘c:\Program Files\cursor\resources\app\bin\code’
but the WSL server connection succeeds immediately afterwards.
Reproduction
Open any WSL folder in Cursor, even an empty one.
Open Agent/Chat.
Send a simple prompt such as Hello.
Request fails with getaddrinfo EBUSY …cursor.sh.
Open a normal Windows filesystem project in the same Cursor installation.
Agent/Chat works.
Could this be a bug in the Cursor WSL/remote Agent networking path? The hostname resolves correctly from both Windows and WSL, and HTTPS connectivity from WSL works, but Cursor’s own Node/Electron process returns getaddrinfo EBUSY only for WSL workspaces.
For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)
For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…
Additional Information
Add any other context about the problem here.
Does this stop you from using Cursor?
Yes - Cursor is unusable
Sometimes - I can sometimes use Cursor
No - Cursor works, but with this issue
The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!
Hey @Michael_Schlafer, thanks for the detailed report and for ruling out so much already.
In a WSL window, Cursor’s agent connects to our servers from inside WSL, and the DNS lookup in that process is what’s failing with EBUSY. Your Windows-side network is fine, so you can tell Cursor to send agent traffic through Windows instead:
On Windows, press Ctrl+Shift+P and run “Preferences: Open User Settings (JSON)”.
Add this line inside the top-level braces (add a comma after the previous line if needed):
“cursorAgentHost.remoteInferenceRoute”: “always”
Save the file.
Reopen your WSL folder, then press Ctrl+Shift+P and run “Developer: Reload Window”.
Open a new chat and send “Hello”.
Could you also run this inside your WSL terminal and paste the output? It uses the same Node that Cursor runs in WSL:
N=$(find ~/.cursor-server -maxdepth 4 -name node -type f | head -1); echo $N
$N -e "const d=require('dns');d.lookup('api2.cursor.sh',(e,a)=>console.log('plain',e?e.code:a));d.lookup('api2.cursor.sh',{hints:d.ADDRCONFIG},(e,a)=>console.log('addrconfig',e?e.code:a))"
Along with the output of wsl --version (in PowerShell) and the networking lines of your .wslconfig, if you have one (for example networkingMode, dnsTunneling).