Cursor agent hangs executing terminal commands after about 5 commands

Describe the Bug

As a part of a multi-step agent operation in Chat, Cursor is often starting commands and examining their output - which is fine, but for some reason after about 5 such commands, something happens, a terminal view is not opened, and the command output isn’t examined. See the screenshot for how it looks.

Steps to Reproduce

Start an agent operation in Chat that needs to execute more than 5 terminal commands

Expected Behavior

That Cursor works.

Screenshots / Screen Recordings

Note that there’s no “Starting terminal…” message or the actual terminal view. It just hangs at this step.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Additional Information

I think this used to work fine in previous version of Cursor.

The problem is indepentent of which model is used, including “auto”.

Does this stop you from using Cursor

Yes - Cursor is unusable

The only solution now is to click “Move to backgounrd”, this bug is pretty old.

Related (contains hacky solutions): Terminal getting stuck, hangs, stalls forever, not displaying output in windows (auto-run agentic mode)