Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Hi everyone,
I’m having a serious issue with the Cursor Agent. Whenever the Agent tries to run any terminal command, it fails with errors like these:
zsh:1: command not found: cat
(eval):1: command not found: npm
zsh:1: command not found: dump_zsh_state
Basically, almost no CLI command works inside the Agent, even though everything works perfectly fine in my normal macOS terminal and in the regular integrated terminal inside Cursor.
The strange part is:
This issue only happens in Cursor 2.x
When I downgrade to Cursor 1.5, the Agent works normally.
Summary of the issue:
cat, npm, and many other basic commands fail inside Cursor Agent.
I also get this error specifically:
zsh:1: command not found: dump_zsh_state
These commands do work:
In my macOS terminal
Inside Cursor’s normal terminal
They do not work:
When the Agent tries to execute them
Everything behaves correctly in Cursor 1.5, so this seems like a regression in 2.0.77.
Steps to Reproduce
Ask the Agent to do anything that requires running a CLI command, for example:
“Run the tests”
“Run npm install”
“Show me the contents of this file” (which makes it call cat)
The Agent then fails and returns errors like:
zsh:1: command not found: cat
(eval):1: command not found: npm
zsh:1: command not found: dump_zsh_state
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0
Does this stop you from using Cursor
Yes - Cursor is unusable