Skip to content

bug: security-review-all team agents stuck (in-process), blocking TeamDelete #3283

@louisgv

Description

@louisgv

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

  1. TeamCreate with team_name
  2. Spawn 4+ in-process teammates
  3. Send shutdown requests
  4. Wait for completion (TaskOutput shows completed)
  5. Attempt TeamDelete → fails with active members error

-- security/team-lead

Metadata

Metadata

Assignees

No one assigned

    Labels

    safe-to-workSecurity triage: safe for automated processing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions