Skip to content

[Bug]: Interrupting a parent thread fans out hundreds of run_interrupt_request items onto already-completed child runs #41683

Done

Description

@Luzivog

Area

apps/server

Summary

When a top-level orchestrator thread with many historical sub-agent threads is interrupted, T3 fans out run_interrupt_request turn items onto already-completed child runs across the thread tree.

Live evidence (0.1.12-nightly.20261122.5111)

Measured in statev2.sqlite (orchestration_v2_projection_turn_items where type = 'run_interrupt_request'):

  • One parent interrupt at 04:38Z fanned out into 397 run_interrupt_request items across the thread tree, 395 of them on runs that had already completed (zero child runs were running at that moment).
  • Two other orchestrator trees saw the same burst at 02:21Z: 52 of 54 and 50 of 54 run_interrupt_request items written onto already-completed sub-agent runs within 1.4 seconds.

Expected behavior

Interrupt fan-out should filter to active/queued child runs (status IN ('preparing', 'queued', 'starting', 'running')) and skip already-terminal runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions