Subagent in Plans mode hangs when running find command (terminal never returns)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hi Cursor team,

I’m encountering an issue when using Plans mode with subagents.

Issue

When the subagent executes a shell command like:

find . -name “*.cpp”

The process hangs indefinitely:

The terminal never returns

No error is shown

The agent appears to be stuck thinking

Steps to Reproduce

Open Cursor IDE
Enable Plans mode
Create a new plan that includes a subagent step which executes a shell command.
In the subagent task, instruct it to search for files using find, for example:
find . -name “*.cpp”
(or any recursive find command in a moderately large project)

Let the plan execute.

Screenshots / Screen Recordings

Operating System

Linux

Version Information

IDE: Version 2.6.11

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. I see find commands get stuck on “Waiting for output” and never finish.

This is a known issue with detecting when terminal commands are done. Try turning on Legacy Terminal as a temporary workaround:

  1. Settings > Cursor Settings > Agents > Legacy Terminal, turn it on
  2. Restart Cursor
  3. Try again

If that doesn’t help, please share:

  • Which shell you’re using (echo $SHELL in the terminal)
  • Console logs: Ctrl + Shift + P > Developer: Toggle Developer Tools > Console tab
  • Rough project size (how many files or folders). Running find in a big tree might be part of the issue

Let me know how it goes.