Skip to content

bug: non-interactive shutdown loop still occurs after TeamDelete (regression from #3103) #3154

@la14-1

Description

@la14-1

Description

After TeamDelete succeeds and returns "No team name found, nothing to clean up", the non-interactive harness continues injecting shutdown prompts in an infinite loop.

Repro

  1. Run a full refactor cycle in non-interactive mode (-p)
  2. All teammates confirm shutdown
  3. Call TeamDelete — returns {"success":true,"message":"No team name found, nothing to clean up"}
  4. Harness continues injecting: "You are running in non-interactive mode and cannot return a response until your team is shut down"

Expected

Harness detects team is gone and terminates the loop.

Actual

Loop continues indefinitely despite TeamDelete confirming no team exists.

Notes

This is a regression — issue #3103 was closed but the bug persists. The harness appears to check session-level team context rather than actual team existence.

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