Where does the bug appear (feature/product)?
Cloud Agent (GitHub, Slack, Web, Linear)
Describe the Bug
The AI agent’s terminal/shell tool runs commands but always returns “no exit status.” The commands never actually execute — files they are told to create are never created, and no output is captured. This makes the agent unable to run any shell commands (git, python, file listings, etc.). A normal manual terminal works fine in the same window.
Steps to Reproduce
- Open Cursor on Windows 11 with a workspace folder.
- Ask the agent to run any shell command (e.g. count files, run a python script).
- Agent reports “the shell command returned no exit status.”
- Verify the command did nothing (e.g. an output file it should have written does not exist).
- Open a manual terminal (Ctrl+
) and run the same command (e.g.echo hi`) — it works and prints output, confirming the shell itself is fine.
Expected Behavior
The agent’s terminal tool should execute the command, capture its stdout/stderr, and return an exit code — the same way the manual integrated terminal does.
Operating System
Windows 10/11
Version Information
Windows 11 24H2 (build 26100)
For AI issues: which model did you use?
Not model-specific — this is an agent terminal/shell-integration issue, reproduces regardless of model.
Additional Information
Already ruled out on my side:
- Reloaded the window multiple times.
- Fully restarted Cursor multiple times.
- Execution policy is not the cause (LocalMachine = Unrestricted; also set CurrentUser = RemoteSigned). No change.
- settings.json is clean (no terminal overrides): only window.autoDetectColorScheme, security.workspace.trust.enabled, cursor.general.disableHttp2.
- Manual terminal (Windows PowerShell 5.1) works and prints output; only the AGENT shell fails.
- Agent’s file read/edit tools work — only command execution is broken.
Does this stop you from using Cursor
Yes - Cursor is unusable