Terminal issues...again

Hey, thanks for the report.

This is a known issue with the new Agent Terminal implementation in Cursor 2.x. The sandbox environment doesn’t load the user shell profile (.bashrc) or PATH.

Try this:

Step 1: Enable the Legacy Terminal Tool

  1. Open Cursor Settings Cmd/Ctrl+Shift+J
  2. Go to Agents → Inline Editing & Terminal
  3. Enable Legacy Terminal Tool
  4. Cmd/Ctrl+Shift+P → run Terminal: Kill All Terminals
  5. Fully restart Cursor

Step 2: If Legacy doesn’t help, set up a terminal profile

Add this to settings.json (Cmd/Ctrl+Shift+P → Preferences: Open User Settings (JSON)):

"terminal.integrated.profiles.linux": {
  "bash": {
    "path": "/bin/bash"
  }
},
"terminal.integrated.defaultProfile.linux": "bash"

(Replace linux with osx for macOS, or windows for Windows.)

A similar issue is discussed here: Cursor Terminal - Shell Profile

Let me know if this helps. If not, please share your Cursor version (Help → About) and your OS.