Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor Shell Tool Spawn Failure
Date: 2026-02-09
Context: Agent attempted to run create_sprint_branches.sh for Sprint 37 (repo1 and repo2). Manual run in user terminal succeeded.
Problem Summary
The Cursor Shell tool (run_terminal_cmd) failed to spawn every time it was invoked. The failure occurred before any command executed; the error was immediate and consistent across multiple turns and after restarts (Linear, then Cursor).
What Was Attempted
The agent invoked the Shell tool with:
- Command:
cd /Users/chris/dev/repo3 && bash repo3/create_sprint_branches.sh dev-183-sprint-37 - Optional parameters:
required_permissions: ["network"](forgit fetch/git push), plusdescriptionandis_background: false.
Error Message
Command failed to spawn: Unexpected token ''', ..."ssions": ['network',"... is not valid JSON
So the failure was in spawning the command (or in handling the tool request), not in the commandâs exit code or output.
Likely Cause
The error suggests a JSON parsing error in the request that Cursor sends when invoking the Shell tool. In particular:
- The fragment
..."ssions": ['network',"...looks like a truncated or malformedrequired_permissions(or similar) field. - Possible causes: bad escaping of quotes in the tool-call payload, a bug in how the agentâs tool call is serialized when
required_permissions(or similar) is present, or a bug on the Cursor/IDE side that parses that payload.
What Worked
The user ran the same command manually in their own terminal; the script and branch creation worked. So the failure was specific to the Shell tool integration, not to the command or the script.
Steps to Reproduce
I have a âstart_sprint.mdâ file which is used by an Agent to perform sprint setup operations including branch creation via a script. This script used to work but failed to run for my latest sprint with the error mentioned above.
Expected Behavior
Script should run.
Operating System
MacOS
Version Information
Version: 2.4.31
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin x64 24.6.0
For AI issues: which model did you use?
auto
Does this stop you from using Cursor
No - Cursor works, but with this issue