No way to cancel/stop spawned agent team without killing the session
Bug Report / Complaint
What happened: After Claude Code spawned multiple parallel agents without my approval (see related issue: agent proceeding without user confirmation), I was unable to stop or cancel the running agents. The only way to regain control was to kill the entire session.
Expected behavior: Users should be able to cancel or stop running agents mid-execution (e.g., via Ctrl+C, Escape, or a /stop command) without losing their session. Graceful cancellation of agent teams is essential for maintaining user control.
Impact: I was forced to kill the session entirely, losing conversation context. Combined with the unauthorized execution bug, this left me unable to prevent unwanted changes to my project. I am filing this as both a bug report and a formal complaint.
Environment:
- Platform: macOS (Darwin 25.3.0)
- Model: Claude Opus 4.6 (1M context)
- Claude Code CLI
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗