# Agent not detecting that a command has completed

**URL:** <https://forum.cursor.com/t/agent-not-detecting-that-a-command-has-completed/65052>\
**Category:** Bug Reports\
**Created:** [March 16, 2025, 6:07pm UTC](https://forum.cursor.com/t/agent-not-detecting-that-a-command-has-completed/65052 "2025-03-16T18:07:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SmartManoj](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smartmanoj/32/113510_2.png) [@SmartManoj](https://forum.cursor.com/u/SmartManoj)\
**Post date:** [March 28, 2025, 6:39am UTC](https://forum.cursor.com/t/agent-not-detecting-that-a-command-has-completed/65052/6 "2025-03-28T06:39:26Z")

</div>

Prompt:

```auto
@https://forum.cursor.com/t/agent-not-detecting-that-a-command-has-completed/65052/4 
solution? you have this bug. how to solve this?
run echo first

```

Solution:

```auto
Now let's try running it with a simpler command and redirecting both stdout and stderr:

python test.py 2>&1

```

---

_[View the full topic](https://forum.cursor.com/t/agent-not-detecting-that-a-command-has-completed/65052)._
