Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Environment
OS: macOS (darwin 25.3.0)
Shell: zsh (default profile: terminal.integrated.defaultProfile.osx: “zsh”)
Cursor: recent version (likely 2.x)
What happens When the AI agent runs simple terminal commands (e.g. ls, ls -la, pwd) in the project directory:
The command is sent to the terminal.
No stdout/stderr is ever returned to the agent.
After ~30 seconds the run is treated as timed out and the command is sent to the background.
The terminal log file only contains metadata (cwd, command, started_at, running_for_ms: 30000) and no actual command output.
So the agent never sees the result of any terminal command, even for instant commands like ls.
What was tried
Legacy Terminal Tool: Tried both ON and OFF in Inline Editing & Terminal — no change.
Sandbox: Added .cursor/sandbox.json with “type”: “insecure_none” for this project — no change.
Shell prompt: Added a simple prompt when CURSOR_AGENT is set in ~/.zshrc (as in the Terminal docs) — no change.
Auto-Run: Commands are allowed to run (not “Ask every time” blocking them).
Expected The agent should receive the command output (e.g. the listing from ls) so it can use it in the conversation.
Question Is this a known issue? Is there a setting or workaround (e.g. timeout, terminal backend, or shell configuration) that would allow the agent to get terminal output on this setup?
Thanks.
Steps to Reproduce
Steps to Reproduce
Open Cursor on macOS with zsh as the default shell.
Open a project (e.g. any folder with files).
Open the Agent chat (Composer or Chat with Agent).
Ask the agent to run a simple command, e.g.:
“Run ls in the terminal” or “Execute ls in the project directory”.
Let the command run; do not cancel it.
Wait about 30 seconds.
Expected: The agent receives and shows the ls output (list of files).
Actual: No output is returned to the agent; after ~30 seconds the run is reported as timed out and the command is sent to the background. The agent never sees any terminal output.
Operating System
MacOS
Version Information
Version: 2.6.12 (Universal)
VSCode Version: 1.105.1
Commit: 1917e900a0c4b0111dc7975777cfff60853059d0
Date: 2026-03-04T21:41:18.914Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin x64 25.3.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
