Mac OS Terminal Shell Script Integration Is Broken

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

IDE does not wait for terminal commands to complete.

Steps to Reproduce

I’m not providing forensics.

Expected Behavior

I’m not providing forensics.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

I’m not providing forensics.

For AI issues: which model did you use?

I’m not providing forensics.

For AI issues: add Request ID with privacy disabled

I’m not providing forensics.

Additional Information

I’m not providing forensics.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. Unfortunately, there aren’t enough details in the post. There’s no Cursor version, no exact commands, and no info about your shell. That makes it hard to diagnose.

Try the following:

  • macOS/Linux with custom shell themes (Powerlevel10k, Starship)
    The official docs fix is to add this to ~/.zshrc:
if [[ -n "$CURSOR_AGENT" ]]; then
  ZSH_THEME=""
  PROMPT='%n@%m:%~%# '
else
  [[ -r ~/.p10k.zsh ]] && source ~/.p10k.zsh
fi

Details: Terminal | Cursor Docs

  • A universal workaround for all platforms:
    • Settings Cmd+, > Agents > enable “Legacy Terminal Tool”
    • Cmd+Shift+P > “Terminal: Kill All Terminals”
    • Restart Cursor

Similar reports: Agent Terminal not working

To help more accurately, please share:

  • Your Cursor version (Help > About)
  • Which shell you use (zsh/bash) and your theme
  • Whether this happens in Agent Mode or the normal terminal
  • An example command that never finishes

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.