[BUG] Claude code freezing when launching multiple writing subagents
Environment
- Platform (select one): npm local
- Claude CLI version: 1.0.77
- Operating System: WSL2 on Windows 11
- Terminal: Bash
Bug Description
After creating a generic writing agent to write anything I ask on any file I wanted, I asked in my prompt for claude to launch 3 subagents instances of this generic subagent to write a poem on 3 differente markdown files (test1.md, test2.md and test3.md. When I'm prompted to accept a change on any of the changes of the subagents and accept it, Claude accepts only 1 one of the changes, rejecting the others.
Steps to Reproduce
- Create generic agent for modifying files
- Send the following prompt "I want you to launch 3 subagents of file-modifier to create a separate poem in each one of the following files: @test1.md @test2.md and @test3.md. You must launch these subagents to make changes at the same time in paralel."
- Wait for claude to prompt user to accept changes.
- Accept changes
Expected Behavior
Each writing prompt should appear consecutively in a stack order for the user to accept or reject each one. And most of all, claude code shouldn't freeze.
Actual Behavior
Claude code automatically rejects the other subagents writing and freezes in an eternal loop trying to finish the prompt. It doesn't accept keys to cancel the prompt as a whole (e.g. pressing "esc" two times). It only exists the loop when pressing "ctrl+c" twice, but also exists claude code.
Additional Context
Terminal:
> I want you to launch 3 subagents of file-modifier to create a separate poem in each one of the following files: @test1.md @test2.md and @test3.md. You must launch these subagents to make changes at the same time in paralel.
⎿ Read test1.md (1 lines)
⎿ Read test2.md (1 lines)
⎿ Read test3.md (1 lines)
● I'll launch multiple file-modifier agents in paralel to create separate poems for each file. The files exist, but are empty.
● file-modifier(Create poem in test1.md)
⎿ Write(test1.md)
Error: Interrupted by user
⎿ No (tell Claude what to do differently)
● file-modifier(Create poem in test2.md)
⎿ Write(test2.md)
Wrote 29 lines to test2.md
⎿ No (tell Claude what to do differently)
● file-modifier(Create poem in test3.md)
⎿ Write(test3.md)
* Wandering… (525s · ⚒ 322 tokens · esc to interrupt)
⎿ Tip: Ask Claude to create a todo list when working on complex tasks to track progress and remain on trackThis issue has 3 comments on GitHub. Read the full discussion on GitHub ↗