Hey, thanks for the report. This issue is related to shell initialization in the agent terminal.
A few questions for diagnostics:
- Are you working locally or over SSH?
- Do you have
exec zshorexec bashin your.zshrc,.zshenv, or.bash_profile? - Are you using iTerm2 with shell integration? (Check for
.iterm2_shell_integration.zsh)
Try these fixes:
If you have exec zsh in .bash_profile, add a guard:
if [[ -n "$CURSOR_AGENT" ]]; then
:
else
exec zsh
fi
If you’re using iTerm2 integration, try commenting out this line in .zshrc temporarily:
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
Similar fix: AI Terminal over SSH fails with `dump_bash_state: command not found` and random "command not found" lines
Let me know if this helps.