Skip to content

[Bug]: Delegated task fails on a passing provider error instead of continuing the child, so a retry repeats finished steps #29988

Closed

Description

@jagadhis

Area

apps/server (orchestration-v2, delegated tasks)

What happens

When a delegated child thread's run fails on a provider error that passes on its own (an overload, a dropped connection, an HTTP 429 rate limit or a 5xx), T3 marks the delegated task failed straight away and wakes the parent with that failure. The child is not retried or continued.

The parent then has two choices, both bad:

  • give up on work that would have finished a few minutes later, or
  • start the task again, in which case the new child repeats steps the first one already completed. Those can be steps with effects outside T3, such as posting a PR comment, opening a PR or writing to an issue tracker, so they happen twice.

T3 already handles a similar case well: across a T3 restart, childAwaitsRestartContinuation holds the task status and the parent's wake, and continues the same child. A passing provider failure gets no such treatment.

Steps to reproduce

Observed, not yet a deterministic repro:

  1. From a Claude thread, delegate a long task with delegate_task.
  2. While the child is running, let the provider return a rate-limit or overload error (for example by hitting the account's rate limit).
  3. The child's run fails, the delegated task is marked failed and the parent is woken with the error.

Expected behavior

For a provider failure that passes on its own, T3 holds the task status and the parent's wake, then continues the same child (same delegatedTaskId) after a backoff, for example 1, 2, 4 and 8 minutes. It wakes the parent only with the final result. If the tries run out, or the error is a lasting one (usage limit reached, signed out, an error T3 does not recognise), it fails at once as today and the parent gets the provider's real reason.

Because the continued child keeps its own history, it knows what it already did and does not repeat it.

Actual behavior

The task fails on the first passing provider error. Any retry is a fresh child with no memory of the earlier steps.

Impact

Major degradation or frequent failure, for anyone who delegates long-running work.

Version or commit

0.1.7-nightly.20261102.4093

Environment

macOS arm64 (Darwin 25.6.0), desktop app with local server, Claude provider for parent and child.

Related

Activity

  1. locked and limited conversation to collaborators on Nov 3, 2026
  2. converted this issue into a discussion #29990 on Nov 3, 2026
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