Skip to content

User-facing Retry for a failed workflow phase agent #825

Closed

Description

@currentbits

Decision

After a workflow phase agent has failed (automatic same-slot retry exhausted, or the user stopped), the Agents panel shows a Retry control on that failed slot.

Clicking it re-spawns that agent only on the same slot:

If later phases never ran (all-fail or stop), a successful retry continues those phases. Settled agents are not re-run. Failed siblings stay failed until the user retries them.

Out of scope: automatic in-run retry (#815 / #819 / #823), persist/resume flags, crash-resume, a Retry-turn change for workflow transcripts (#830).

Steps

  • Failing tests: user retry after fail/stop re-spawns the same slot; no --resume; thread.sessionId untouched; no note on first-try success
  • runs.retryWorkflowAgent({ threadId, agentId }) plus six-place IPC
  • Agents panel Retry on failed rows; failed phases start open
  • Prove later unstarted phases continue after a successful retry

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Sep 2, 2026
  2. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Implemented on this worktree (not committed).

    • runs.retryWorkflowAgent({ threadId, agentId }) re-spawns a failed slot after the run ends (same overlay, no --resume, no thread.sessionId).
    • Work-log line is in-progress during that spawn, then done. No transcript event.
    • Later unstarted phases continue when the retry succeeds.
    • Agents panel shows Retry on failed rows when the thread is not working; failed phases start open.

    Verified: electron retry suite 5/5, renderer 4/4, existing workflow suites 24/24.

  3. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Implementing the #825 engine on worktree dacb06a9 (this tree already has no retryWorkflowAgent). Tests first: user retry after fail/stop re-spawns the same slot; no --resume; thread.sessionId untouched; later unstarted phases continue.

    Out of scope here: #830 transcript Retry-turn routing (follow after this engine lands).

  4. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Engine is in this worktree (dacb06a9), not committed.

    • runs.retryWorkflowAgent({ threadId, agentId }) re-spawns a failed slot after the run ends (same overlay, no --resume, no thread.sessionId).
    • Work-log line is in-progress during that spawn, then done. No transcript event.
    • Later unstarted phases continue when the retry succeeds.
    • Agents panel shows Retry on failed rows when the thread is not working; failed phases start open.

    Verified: electron retry suite 6/6, renderer 4/4, existing workflow suites 32/32, typecheck + IPC seam pass.

    Transcript Retry-turn routing remains #830.

  5. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Engine landed on worktree f699f15e (this branch): runs.retryWorkflowAgent re-enters startWorkflowRun({ resumeFromAgentId, existingView }) on the same overlay. Six-place IPC + runner passthrough are in this tree too.

    Not in this tree: Agents-panel Retry button, transcript Retry-turn (#830).

  6. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    User-facing workflow retry landed on origin/main via #840.

  7. added
    plan:done
    and removed
    plan:doing
    on Sep 8, 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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions