These paths are often used in sveltekit for layout groups
I found I can work around it by escaping the path myself and then double quoting it.
cursor -g “src/routes/(auth)/+layout.server.ts”
For sveltekit inspector to work I had to jump through a number of hoops such as creating a launch script. It would be better if cursor would take the unescaped path and make it work.
Steps to Reproduce
Try launching with cursor -g "src/routes/\(auth\)/+layout.server.ts"
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. This is definitely a CLI issue where the -g/--goto command isn’t correctly escaping special characters in file paths.
The error message confirms there’s an eval syntax error in the remote-cli script. Your workaround of manually escaping the parentheses is correct, but the CLI should definitely handle this automatically.
I’ll pass this on to the team. For better integration with tools like SvelteKit Inspector, the CLI should accept unescaped paths and handle the escaping internally.
Let me know if you find any other special characters that cause similar problems.