Subagent UI spam: Agent output printed repeatedly in terminal
Description
I'm experiencing a UI issue where subagent output gets printed 10s to hundreds of times in the terminal while the agent is working. The repeated output makes it appear as if the agent might be caught in a loop, though I can't confirm this is actually happening.
Expected Behavior
Subagent output should be displayed once or with reasonable frequency updates.
Actual Behavior
The same subagent output gets printed repeatedly (10s to 100s of times) in the terminal, creating spam-like behavior.
Impact
- Makes it difficult to follow actual progress
- Terminal becomes cluttered with repeated messages
- Unclear if agent is actually looping or just UI display issue
Environment
- Platform: macOS (Darwin 23.5.0)
- Using Claude Code CLI
Steps to Reproduce
Occurs intermittently when using subagents for various tasks - no specific reproduction steps identified yet. But seems to be potentially occuring when implementing code against test cases, but can't cofirm this is what is causing it. It could also be caused by a long running session against a masterfully well crafted implementation plan 😉
other times I will see massive blank space appear between the previous agents work and the agent currently working.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/1704
- https://github.com/anthropics/claude-code/issues/3649
- https://github.com/anthropics/claude-code/issues/5557
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This is happening to me also
This is happening to me now. Please fix this, thanks!
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.