I get this every time Cursor runs a command:
What do i need to change in my settings to not get this error every time?
I get this every time Cursor runs a command:
What do i need to change in my settings to not get this error every time?
I’m having the same issue. Come on guys, I’m paying for this out of my own pocket.
I’m experiencing the same issue with unexpected ‘q’ commands appearing after terminal output. Here’s my detailed experience to add to the existing reports:
Remote Server: Linux 5.4.0-215-generic #235-Ubuntu (accessed via SSH)
Remote Shell: zsh 5.8
Cursor Version: 0.50.4 (user setup)
VSCode Version: 1.96.2
Electron: 34.3.4
Node.js: 20.18.3
Local Client OS: Windows 10.0.19045 x64
Connection: Remote SSH from Windows to Linux server
After every terminal command executed by the AI assistant in the remote SSH session:
The command executes correctly and shows output
A “zsh: command not found: q” error appears automatically
This ‘q’ command isn’t selectable/copyable in the output window
The error appears consistently after every command
What’s interesting in my case:
This ONLY happens in Cursor’s remote SSH output window
The same commands work fine in a direct SSH terminal session (outside Cursor)
It happens even though the AI assistant uses | cat
to prevent pager behavior
The issue occurs specifically in the remote SSH context
The screenshot above shows:
AI assistant executing a command on remote SSH
Normal command output
The unexpected “q” error
Full chat interface context
This seems related to how Cursor handles terminal output pagination in remote SSH sessions. Even though the AI is explicitly preventing pager usage (by appending | cat
), something at the IDE level appears to be triggering this behavior. The remote SSH nature of the connection (Windows client → Linux SSH server) might be particularly relevant to the issue.
Has anyone found a fix for this?
I’m getting this issue as well. Typically when Cursor tries to do something like run unit tests, or echo the date and time.
Oddly the commands often seem to run OK, and it seems that Cursor can process the output.
But still, it would be nice to have a fix for this. Maybe it’s paranoia but seeing an error message like this i get the discomforting feeling that something is secretly going wrong and things could be getting broken underneath somehow.
C:\>q^D^C
'q♦♥' is not recognized as an internal or external command,
operable program or batch file.
I’m also experiencing this problem, constantly. I tried copying and pasting, but when I select and copy, it seems to be copying something else, or maybe nothing. I’m not sure.
ADD this to your instruction to unblock while the team comes back from holidays
DO NOT USE && IN COMMANDS
This doesn’t solve the problem.
I am having the same issue. Is it reported to Cursor DEV team?
Same here, none of the solutions have worked
It works for me now. See my previous post.