The solution that worked was adding specific shell integration markers through these changes to your ~/.zshrc:
-
PROMPT_EOL_MARK=“”
-
iTerm2 shell integration
-
The precmd/preexec hooks for command status signaling
These changes help Cursor better understand when commands start and finish in your terminal.