# Constant freezing when agent tries to run commands

**URL:** <https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502>\
**Category:** Bug Reports\
**Tags:** terminal, crashes\
**Created:** [January 21, 2026, 5:14pm UTC](https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502 "2026-01-21T17:14:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariana\_Athayde](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@Mariana\_Athayde](https://forum.cursor.com/u/Mariana_Athayde)\
**Post date:** [January 21, 2026, 5:14pm UTC](https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502/1 "2026-01-21T17:14:57Z")

</div>

### 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

 ![frozen.png](https://us1.discourse-cdn.com/cursor1/original/3X/d/5/d5c41d2f38fc49a4529905ad899f765bf7d6e67c.png)

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 21, 2026, 5:21pm UTC](https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502/3 "2026-01-21T17:21:00Z")

</div>

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](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176)

---

<div class="post-metadata">

**Author:** ![Mariana\_Athayde](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@Mariana\_Athayde](https://forum.cursor.com/u/Mariana_Athayde)\
**Post date:** [January 21, 2026, 7:23pm UTC](https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502/4 "2026-01-21T19:23:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [February 12, 2026, 7:23pm UTC](https://forum.cursor.com/t/constant-freezing-when-agent-tries-to-run-commands/149502/5 "2026-02-12T19:23:28Z")

</div>

Closed on February 12, 2026, 7:23pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
