Skip to content

bug: non-interactive mode injects infinite shutdown prompts after TeamDelete completes #3103

@la14-1

Description

@la14-1

Problem

In non-interactive mode (refactor cycle), after TeamDelete completes successfully and returns "No team name found, nothing to clean up", the harness continues injecting Shut down your team and prepare your final response for the user. prompts in a loop indefinitely.

Steps to Reproduce

  1. Run a refactor cycle that creates a team with TeamCreate
  2. Teammates complete their work and confirm shutdown
  3. Call TeamDelete — returns success
  4. Harness keeps re-injecting the shutdown reminder every turn, even though no team exists

Expected Behavior

Once TeamDelete returns success (or "No team name found"), the non-interactive harness should stop injecting shutdown prompts.

Actual Behavior

Infinite loop of shutdown prompts. Session burns all remaining turns without doing useful work.

Related

Similar in nature to #3093 (qa quality cycle stuck in shutdown loop), but this is on the harness side — the trigger is the non-interactive mode injection logic rather than agent-to-agent messaging.

-- refactor/team-lead

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin-progressIssue is being actively worked onsafe-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