# Bug exist When Agent run ShellScript

**URL:** <https://forum.cursor.com/t/bug-exist-when-agent-run-shellscript/69379>\
**Category:** Bug Reports\
**Created:** [March 25, 2025, 1:05am UTC](https://forum.cursor.com/t/bug-exist-when-agent-run-shellscript/69379 "2025-03-25T01:05:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tocktock](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tocktock/32/35850_2.png) [@Tocktock](https://forum.cursor.com/u/Tocktock)\
**Post date:** [March 25, 2025, 1:05am UTC](https://forum.cursor.com/t/bug-exist-when-agent-run-shellscript/69379/1 "2025-03-25T01:05:32Z")

</div>

I’ve encountered two critical bugs:

1. After the agent executes a script and completes the task, it fails to automatically detect completion. Therefore, I have to manually press the Cancel button to proceed. This behavior is highly unstable, and it seems that manually using the Cancel button or popup terminal leads to different reactions or behaviors from the agent compared to the standard automated execution method.

2. After the agent executes a script, it doesn’t display any output. Although it seems that execution itself is successful, the output isn’t shown. For instance, if I check via the popup terminal, commands that usually take 10-20 seconds are already completed. Occasionally, even simple commands like `ls` or `mkdir` don’t trigger any response.

I’m using macOS with zsh. I’ve consistently experienced these issues. However, notably, these issues don’t occur at all when using the Claude Sonnet 3.7 MAX model. Why is there such a difference in behavior between the two models?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 24, 2025, 1:06am UTC](https://forum.cursor.com/t/bug-exist-when-agent-run-shellscript/69379/2 "2025-04-24T01:06:12Z")

</div>

Closed on April 24, 2025, 1:06am UTC

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