Skip to content

Remote Action tasks finish before their awaited background result #579

Closed

Description

@lastobelus

Problem

On installed 0.1.7-nightly.20261102.4066 (source 4f02affcfee2e153af8450461a58b2e0a60596f2), an app-owned remote Claude child completed a resumable Action, then started a native background command and explicitly marked it awaited with t3_background_wait.

The logical task correctly stayed unfinished after the foreground Action continuation ended. When the background command finished, the source task was completed using that continuation's earlier waiting reply. The actual background-result response ran afterward in the child, without the original remote delegation association, and did not replace the parent's final result.

Reproduction

  1. Delegate an app-owned remote Claude child on the identified installed checkpoint.
  2. Have it launch one harmless opted-in resumable Action and end its turn.
  3. In the genuine automatic continuation, start a harmless native background command, mark its actual task ID awaited with t3_background_wait, then end unfinished.
  4. Verify the logical source task is still running while the awaited command is pending.
  5. Complete the command normally and let its real native completion notification run.
  6. Compare the source task's final result with the child's subsequent background-result response and its run's delegation association.

Evidence and expected behavior

The isolated run recorded one successful Action, its exact automatic continuation, a matched awaited-background receipt, and a later truthful final response. The source task instead retained the earlier unfinished/waiting response as successful completion. The later child run had no remote delegation selector. No parent polling or result relay was used.

An Action task that explicitly awaits subsequent work must retain ownership through the actual final response and deliver that result once. Preserve the ordinary policy that unawaited commands/watchers do not hold completion, and preserve unrelated later task rounds.

Part of #482. This blocks Phase 3 installed acceptance; source review and earlier passing scenarios do not waive it. No Phase 4 acceptance is claimed.

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