Skip to content

Resuming an Action whose owner ended says there was no follow-up to resume #802

Open

Description

@lastobelus

Follow-up F3 from PR #779 (merged as e2a195b2296), local review round 2 (Opus finding N1; same point as Terra R5), declined as a nit.

Claim

ActionResume.ts:1370-1375: when someone resumes a child-owned interrupted Action after its owning task has ended, delivery disposes the follow-up (which frees new launches), and resumeInterruptedImpl then fails with "This thread has no interrupted Action follow-up to resume." A follow-up did exist; it was just dropped.

The WebSocket path shares this code, so web and mobile show "Could not resume agent" with that text while the banner disappears.

Why declined

Nit: the typed action_not_recoverable error is correct and more honest than the previous silent success; only the copy is misleading.

Symptom if left

An agent (via resume_interrupted_action) or a user (via Resume agent) reads the message as "nothing to recover" and may assume Actions are still blocked, or that the result was lost for some other reason.

Suggested fix

When the post-delivery state is disposed, return a distinct message with the same reason, e.g. "The Action's owning task has ended, so its follow-up was dropped instead of resumed. New Actions can launch."

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions