Agent gets stuck after successfully executing terminal commands

Describe the Bug

using Cursor chat in Agent mode, with terminal commands set to be run automatically - sometimes the Agent is able to run the command and check its output and proceed with a solution, but more often than not, the Agent executes the desired terminal command successfully, but then get stuck waiting for god knows what. I usually press “Skip” on the terminal command, which gets me out of being stuck, but I was wondering if anyone else has seen this and if there was a workaround ? (see endless rotating icon next to “Skip” button on bottom right of attached screenshot)

Steps to Reproduce

Ask the agent to run some terminal command, such as “please, run unit tests”. The agent successfully executes the tests but then gets stuck

Expected Behavior

Agent should continue generating its response after successfully completing any terminal command and should not get stuck.

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.5
VSCode Version: 1.96.2
Commit: ef5eeb47a684b4c217dfaf0463aa7ea952f8ab90
Date: 2025-06-21T05:25:57.631Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Linux x64 6.8.0-62-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 Likes

Constantly.

1 Like

switching terminal from zsh to bash in VS Code Settings (not “Cursor Settings”) fixes the problem