Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When Cursor is already running and we launch it again with --folder-uri "vscode-remote://ssh-remote+HOST/path" and --profile, nothing happens in Cursor (no window opens, edited : focus does change ) and the launching script hangs at “Press Enter to continue”. When Cursor is closed, the same launch works correctly.
Steps to Reproduce
- Open Cursor with profile and workspace in error and ensre remote-ssh is connected.
- Run a script that launches Cursor with:
--profile same profile --folder-uri "vscode-remote://ssh-remote+server/opt/folder"(or any SSH remote URI). - Observe: nothing other than a focus change happens in Cursor (no new window, no workspace switch), script shows “Launching…” and “Press Enter to continue” then appears to hang (or requires switching back to terminal).
- Close Cursor completely, run the same launch again → works correctly (remote workspace opens).
Expected Behavior
- When Cursor is already running, it should reuse the existing window and open the requested remote workspace in it (or open a new window if appropriate).
- The launching script should not hang; it should return to its menu after launching.
Operating System
Windows 10/11
Version Information
Version: 2.5.25 (user setup)
VSCode Version: 1.105.1
Commit: 7150844152b426ed50d2b68dd6b33b5c5beb73c0
Date: 2026-02-24T07:17:49.417Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Composer 1.5
Additional Information
- Nothing visible happens in Cursor when instance is already open.
- Launching script hangs at Read-Host / “Press Enter to continue” (or focus is stolen so user can’t easily continue).
--new-windowflag was tested; no change in behavior.
Workaround Attempts
- Direct
Start-Process -FilePath Cursor.exe -ArgumentList ...(no cmd) works when Cursor is closed, but would lose detached launch behavior (Cursor closes when terminal closes) – trade-off not acceptable. - Using
cmd startachieves detached launch but causes the above failures when Cursor is already open.
Question for Cursor Team
Is there a documented/recommended way to launch Cursor with --folder-uri for SSH remotes from a script such that:
- Cursor survives when the terminal closes (detached), and
- It correctly opens the workspace when Cursor is already running?
Does this stop you from using Cursor
No - Cursor works, but with this issue