Agent not detecting that a command has completed

Prompt:

@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:

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

python test.py 2>&1