Everytime the agent tries to run a command, there’s always a pause, and when I skip it, I get this error:
q
zsh: command not found: q
Steps to Reproduce
I’m on a MacOS if that matters. I’m just using Agent mode and chatting away and then when it thinks it needs to run a terminal, that’s where I get the issue. That means I always have to skip, and then get that error so that the agent can continue.
Step 2: Add to ~/.zshrc (only activates in Cursor Agent):
if [[ -n $CURSOR_TRACE_ID ]]; then
PROMPT_EOL_MARK=""
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
precmd() { print -Pn "\e]133;D;%?\a" }
preexec() { print -Pn "\e]133;C;\a" }
fi
Step 3: source ~/.zshrc and restart Cursor
This way you keep your beautiful P10k theme in normal terminal use, but Cursor Agent gets the proper command detection signals. The CURSOR_TRACE_ID check ensures it only affects Cursor sessions.