[Bug] Child agents continue running after parent agent termination, causing excessive token consumption

Status Open
Reported on v2.1.283
Maintainer reply None cached
Activity 0 comments · opened Sep 28, 2026

Bug Description
What caused it: before being stopped, a subagent had spawned 5 child agents. Each one copied its parent's full context of about 250k tokens. Stopping the parent didn't stop them, and Claude didn't check. They kept running for a couple of minutes, when ListAgents showed them and Claude stopped them. Together with a long session, they used most of the context window in minutes.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.283
  • Feedback ID: 5b72ae21-ff1c-4b51-a685-46d3c034b3df

View original on GitHub ↗