In the latest updates of cursor the chat not detects that terminal command already done

When the chat executes terminal in the latest versions not detect the finish of terminal (zsh integrated on vscode/cursor) i’m force to click on “skip” at the end and right side of on terminal chat, and sometimes the ai agent terminates the execution because detects that we cancelled the terminal command.

example after skip a terminated command on chat says "I see the terminal got cut off, but it looks like it started the deployment process … "

In other versions this not happen.

This will cause more spent prompts from premium and paid account!!!

Brief specs:

Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:26:40.367Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.12.10-76061203-generic

2 Likes

I’m encountering this on both my Linux and Mac machine, but not on my Windows machine for some reason. On my Linux machine I began noticing it in version 0.51.1, and it is still occurring on version 1.0.1.

Multiple other users are reporting this on Github as well:

I’ve discovered that the issue does not seem to be with Cursor itself. At least for me on both of my machines, the issue is related to oh-my-zsh’s Instant Prompt feature.

oh-my-zsh enables this feature by default. I disabled the feature by going to the top of my .zshrc and commenting out the lines related to instant prompt initialization. After Cursor spawned a new terminal, now it is properly seeing when the commands are completed.

i tryied to comment the instant prompt was this lines

Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.

Initialization code that may require console input (password prompts, [y/n]

confirmations, etc.) must go above this block; everything else may go below.

if [[ -r “${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh” ]]; then

source “${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh”

fi

also i saw somewhere that i need to put this also # workaround of issue of cursor.ai to be stuck
PROMPT_EOL_MARK=“”

end

but without success… what i said that don’t work as previous versions was the cursor automatic calls the terminal commands and when gets response automatically continue… now i need to click on skip and sometimes the chat terminates instead of analise the response and continue with the next steps…
Screenshot from 2025-06-12 14-22-19

It seems I’m back to having problems as well. So it may be just an issue with oh-my-zsh in general unfortunately. It works when I replace my .zshrc with a blank one, but I don’t want to do that because oh-my-zsh is too convenient. My workaround is going to be to make Cursor use bash instead of zsh for its terminal, by adding the following to my User settings.json:

"terminal.integrated.defaultProfile.linux": "bash"

(replace linux with osx if that is your OS)