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
- Open Cursor Settings
Cmd/Ctrl+Shift+J - Go to Agents → Inline Editing & Terminal
- Enable Legacy Terminal Tool
Cmd/Ctrl+Shift+P→ run Terminal: Kill All Terminals- 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.