Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
area:coreautocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsperf:memoryplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS
Description
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report (please file separate reports for different bugs)
- I am using the latest version of Claude Code
What's Wrong?
Description
When a subagent creates a Python test script that encounters an error during execution, Claude Code spawns multiple parallel instances of the same subagent task instead of handling the failure gracefully.
Steps to Reproduce
- Initiate a task that requires creating a test script
- Have the subagent (in this case "flow-hawk") create a test file
- When the test file encounters an error during execution
- Observe multiple parallel instances of the same subagent task spawning
Actual Behavior
- Multiple "flow-hawk" instances executing "Implement adaptive window sizing" in parallel
- Redundant parallel execution of the same task
- Resource waste and potential conflicts from parallel writes
Evidence
Environment
-
Claude Code version: 1.0.120
-
OS: macOS Tahoe 26
-
Context: Creating test_adaptive_integration.py (134 lines)
Impact
- Performance degradation
- Resource exhaustion
- Potential file conflicts from parallel writes
- Poor user experience requiring manual interruption (ctrl+t)
What Should Happen?
Expected Behavior
- Single subagent should handle test failure and retry/fix
- Error handling should be sequential, not parallel
- No duplicate subagent instances should spawn
Error Messages/Logs
Steps to Reproduce
-
Ask Claude Code to create a Python module with tests:
"Create an adaptive window sizing module with unit tests" -
When it creates the test file, ensure it fails by asking:
"Make the test import a non-existent module" -
Watch Claude Code attempt to run the failing test
-
Bug: Multiple parallel "flow-hawk" subagents spawn immediately (20+ instances all running "Implement adaptive window sizing")
Minimal trigger code:
# test_adaptive_integration.py
from non_existent_module import Something # This import fails
def test_something():
pass
Result: Cascade of parallel subagents instead of single error handling
### Claude Model
Opus
### Is this a regression?
Yes, this worked in a previous version
### Last Working Version
_No response_
### Claude Code Version
1.0.120
### Platform
Other
### Operating System
macOS
### Terminal/Shell
VS Code integrated terminal
### Additional Information
_No response_Reacted by Paul Berg
Metadata
Metadata
Assignees
Labels
area:coreautocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsperf:memoryplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS
Activity
PaulRBerg commentedon Sep 24, 2025
I am also noticing this buggy behavior - not quite sure what triggers it as in my case, I wasn't writing tests. I'm also not sure if this means that that many subagents are run in parallel - or if it's just a UI error.
github-actions commentedon Dec 6, 2025
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.
github-actions commentedon Jan 9, 2026
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.
github-actions commentedon Jan 16, 2026
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.