Title: Agent terminal tool hangs — every command returns “no exit status” (user’s own terminal works fine)
Environment:
- OS: Windows 10.0.26200
- Default shell: PowerShell
- Cursor: (add your version — Help > About)
Summary:
The Agent’s shell/terminal tool is completely non-functional. Every command the
agent runs — including a trivial echo — returns “The shell command returned no
exit status, so its result is unknown.” No output file is created for the command.
The agent’s other tools (file read, grep, glob, file edits) work normally; only the
terminal tool is broken.
Key detail:
- Running the SAME commands manually in a normal Cursor terminal works perfectly.
- So this is specific to the Agent’s terminal integration, not PowerShell or the OS.
Persistence / things already tried (none fixed it):
- Killed all integrated terminals and opened a new one.
- Reload Window (Ctrl+Shift+P > Reload Window).
- Fully quit and reopened Cursor.
- Full laptop shutdown and restart.
- Reproduces across ALL chats/conversations, not just one.
Impact:
Cannot build/compile a C++ project (MSBuild) or run any executable from the agent,
which blocks the entire workflow.
Expected: agent terminal commands execute and return output + exit code.
Actual: every agent command returns “no exit status” and produces no output.