Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
- Cursor 3.28.7 (stable), commit 25b52e7d03ebf2d5608914158e119f7992432a30
- VS Code base 1.128.0
- Windows 10 (10.0.19045), system install under C:\Program Files\cursor
Forwarding a local port from the Ports view fails immediately:
Unable to forward localhost:8084. spawn c:\Program Files\cursor\bin\code-tunnel.exe ENOENT
Cursor looks for the tunnel CLI next to Cursor.exe, at C:\Program Files\cursor\bin\code-tunnel.exe. That folder does not exist.
The binary is installed at C:\Program Files\cursor\resources\app\bin\code-tunnel.exe (18,009,384 bytes, written 3 Nov 2026 15:15 by the current install). There is no code-tunnel.exe anywhere else in the installation.
Steps to Reproduce
These steps reproduce the failure. Any local port works; 8084 is the one that failed here.
- Install Cursor for all users on Windows, so it is located in C:\Program Files\cursor.
- Confirm that C:\Program Files\cursor\bin\code-tunnel.exe does not exist. The executable is at C:\Program Files\cursor\resources\app\bin\code-tunnel.exe.
- Open Cursor.
- Open the Ports panel, next to Terminal.
- Choose Forward a Port and enter 8084.
If the port is added but no public address appears, change its visibility to Public.
Forwarding stops with this error:
Unable to forward localhost:8084. spawn c:\Program Files\cursor\bin\code-tunnel.exe ENOENT
Nothing needs to be listening on port 8084. Cursor fails first, because it cannot find the tunnel program.
Expected Behavior
Port forwarding should launch the code-tunnel.exe that ships inside the app, or the installer should place that executable at the path the Ports view spawns.
Notes
product.json sets tunnelApplicationName to cursor-tunnel. The Ports view still spawns code-tunnel.exe, and there is no setting to change that path.
Copying the executable into C:\Program Files\cursor\bin\ makes forwarding work, but it requires an administrator and the next Cursor update removes that folder, so the error comes back.
Operating System
Windows 10/11
Version Information
Version: 3.28.7 (system setup)
VS Code Extension API: 1.128.0
Commit: 25b52e7d03ebf2d5608914158e119f7992432a30
Date: 2026-11-03T02:20:44.943Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.19045
Does this stop you from using Cursor
No - Cursor works, but with this issue