Cursor stuck running command

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Every time the terminal command is being run, it just gets stuck. There is no “move to background” button, and I don’t see where Cursor is actually running this command.

Steps to Reproduce

Every time the agent says running command

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.5.26
VSCode Version: 1.105.1
Commit: 7d96c2a03bb088ad367615e9da1a3fe20fbbc6a0
Date: 2026-02-26T04:57:56.825Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

auto

Additional Information

I was remote ssh a server, I don’t know if this matters.

Does this stop you from using Cursor

No - Cursor works, but with this issue

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

OK,option 2 solves the problem

1 Like