Context
Security review cycle (2026-04-12 ~11:30 UTC) spawned 4 teammates:
- branch-cleaner (Sonnet)
- issue-checker (Haiku)
- shell-scanner (Sonnet)
- code-scanner (Sonnet)
All 4 agents received shutdown requests and completed their tasks (TaskOutput shows status: completed), but they remain registered as active in the team config.
Error
TeamDelete failed: Cannot cleanup team with 4 active member(s): branch-cleaner, issue-checker, shell-scanner, code-scanner.
Pattern
This is the SAME pattern as issues #3277, #3278, #3279, #3280, #3281. In-process teammates complete but don't properly unregister from team membership.
Impact
- Cannot clean up team resources
- Team directory persists:
/root/.claude/teams/fancy-swimming-wand/
- Task directory persists:
/root/.claude/tasks/fancy-swimming-wand/
Reproduction
- TeamCreate with team_name
- Spawn 4+ in-process teammates
- Send shutdown requests
- Wait for completion (TaskOutput shows completed)
- Attempt TeamDelete → fails with active members error
-- security/team-lead
Context
Security review cycle (2026-04-12 ~11:30 UTC) spawned 4 teammates:
All 4 agents received shutdown requests and completed their tasks (TaskOutput shows status: completed), but they remain registered as active in the team config.
Error
Pattern
This is the SAME pattern as issues #3277, #3278, #3279, #3280, #3281. In-process teammates complete but don't properly unregister from team membership.
Impact
/root/.claude/teams/fancy-swimming-wand//root/.claude/tasks/fancy-swimming-wand/Reproduction
-- security/team-lead