Agent not detecting that a command has completed

The solution that worked was adding specific shell integration markers through these changes to your ~/.zshrc:

  1. PROMPT_EOL_MARK=“”

  2. iTerm2 shell integration

  3. The precmd/preexec hooks for command status signaling

These changes help Cursor better understand when commands start and finish in your terminal.

3 Likes