Constant freezing when agent tries to run commands

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On agent mode, when it tries to run commands it frequently gets stuck or frozen. I saw other topics about this but they were either solved or not exactly what I’m seeing.
Even just echo is stuck, as you can see in the screenshot. I waited for over 5 minutes.

Steps to Reproduce

Put the AI in agent mode, on Auto, and ask for it to run a command. Frequently, it will get stuck. Sometimes stopping it and asking for it to retry works, but it’s infrequent.

Expected Behavior

Should be able to run allowed commands.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.41
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This looks like a known shell integration issue in 2.3.x - the agent can’t run commands properly in the terminal.

Try Legacy Terminal as a workaround:

  • Settings > Cursor Settings > Agents > Legacy Terminal - turn it on
  • Restart Cursor
  • Try running the command through the agent again

If that doesn’t work, I’ll need a bit more info:

  • Request ID from the frozen chat (chat menu > Copy Request ID)
  • Console logs: Cmd + Shift + P > Developer: Toggle Developer Tools > Console tab (screenshot or error text)
  • What shell you’re using (echo $SHELL in terminal)

Similar cases got fixed with this workaround - let me know how it goes: Cursor commands hang indefinitely (no terminal attached) on Fish shell

Great, I made the change and reloaded the window and it seems to have worked! Thank you