Skip to content

Feature: Parent is never notified when a delegated child finishes a follow-up turn (V2) #13490

Description

@AmishHillBilly

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Parent calls delegate_task (async). The child finishes and the parent is woken as expected.
  2. Parent sends the same child more work with t3_thread_send.
  3. The child finishes that follow-up turn.

Expected behavior

The parent is woken for the follow-up result, the same as for the first one.

Actual behavior

The parent is never woken. The result only shows up if the parent polls task_status (latestTerminal*).

It looks like finalizeAppOwnedSubagent returns early once the child has already delivered one result, so every later turn is skipped:

const existingResultTransfer = parentProjection.contextTransfers.find(
(transfer) =>
transfer.type === "subagent_result" &&
transfer.sourceThreadId === childThreadId &&
transfer.targetThreadId === parentThreadId,
);
if (existingResultTransfer !== undefined) {
return;

This is on the V2 branch (#2829), not main. It's different from #12285 / #13338: it happens with just one child, and #13338 doesn't change this check.

Impact

Major degradation or frequent failure

Version or commit

0.0.43-preview.20260923.2138 (Linux). Mac:

Environment

Linux (self-hosted server) and macOS. Claude and Codex providers.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Start a new delegate_task for each follow-up instead of using t3_thread_send, or have the parent poll task_status.

Activity

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

    via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions