Cursor stuck running command

Hey, thanks for the report. This is a known category of issues with running terminal commands over SSH.

Try these two options:

  1. Enable Legacy Terminal:
  • Cursor Settings Ctrl + Shift + J > Agents > Legacy Terminal Tool: enable
  • Ctrl + Shift + P > Terminal: Kill All Terminals
  • Fully restart Cursor
  1. Check the shell profile for the remote host:
  • Settings Cmd + , > switch scope to Remote [SSH: your-host] (dropdown in the top right)
  • Search for terminal default profile linux
  • Set it to bash (or whatever shell is installed on the server)
  • Restart Cursor and reconnect

Option 2 is especially important since macOS uses zsh by default, and Cursor may try to launch it on the remote server where zsh might not be installed.

If that doesn’t help, please share:

  • Logs from Help > Toggle Developer Tools > Console (screenshot of errors)
  • Which shell is installed on the remote server

Related threads for context: here and here.strong text