Skip to content

Multi-phase workflow runs have no crash-resume; a crash restarts from zero #182

Closed

Description

@currentbits

Problem

Multi-phase workflow runs have no crash-resume policy. recoverInterruptedRuns (electron/store.js:526) only marks a crashed "working" thread interrupted; workflow agents are explicitly one-shot ("no --resume" at electron/workflow.js:226, 365, 463, 549). A crashed Seed -> ... -> Synthesize run loses all phase progress and the user restarts from zero. BRAINSTORM §5 left "resume policy for half-finished phases" as an open question; PRODUCT-SPEC §5 M3 promised "reopen app, see last run state."

Impact

Long fan-out runs are exactly the expensive ones to lose, and they are the runs most likely to hit a crash window.

Fix direction

Persist per-phase completion state in the store; on restart offer "resume workflow from phase N" reusing finished phase outputs.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Slice landed on a worker branch (plan #824, uncommitted): crash recovery now fail-closes in-progress work-log items (including a mid-retry Plan agent 1 retrying line) so they cannot stay done:false forever.

    The rest of this issue is still open: persist per-phase completion and offer resume from phase N. No CLI --resume (#815) and no user-facing Retry button.

  3. added
    plan:doing
    and removed
    plan:todo
    on Oct 10, 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

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions