Cursor AI Assistant Hangs (CLI) After Successfully Executing Terminal Commands

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

The AI assistant successfully executes terminal commands but then hangs and becomes unresponsive. Commands run correctly on the user’s system, but the AI gets stuck during the cleanup/return process.

Steps to Reproduce

Steps to Reproduce:

  1. Ask the AI assistant to execute any terminal command
  2. The command executes successfully on the user’s system
  3. The AI assistant hangs and becomes unresponsive
  4. The AI assistant stops responding to further requests

Expected Behavior

The AI assistant should execute the command and return the results without hanging.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

AI Model:
Platform: Cursor
Model: Cursor AI Assistant
Environment: Cursor IDE

For AI issues: which model did you use?

AI Model:
Platform: Cursor
Model: Cursor AI Assistant
Environment: Cursor IDE

Additional Information

Actual Behavior:

The AI assistant executes the command successfully but hangs during the cleanup/return process, becoming unresponsive.

Technical Details:

• Commands execute successfully (user sees output)
• AI assistant hangs at consistent token counts (89-92 tokens)
• Issue occurs with all command types (simple, complex, background)
• Problem appears to be in the command execution tool’s cleanup process

Impact:

• AI assistant cannot execute terminal commands
• Reduces functionality and user experience
• Forces workarounds (manual command execution)

Workaround:

User must execute commands manually instead of having AI execute them directly

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 Likes

Can you please share the Cursor Version details after updating?

same

1 Like

same issue

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