Skip to content

Retry work-log line should stay in-progress during the second spawn #823

Closed

Description

@currentbits

Decision

The #819 retry note must be in-progress while the second spawn is running, then marked done when that spawn finishes (success or fail).

  • Same one line, e.g. Plan agent 1 retrying
  • beginWorkLogStep immediately before the second spawn
  • completeWorkLogStep when that spawn finishes (success or fail)
  • Same agent slot, no sibling, no thread.sessionId, no transcript event, no Retry button
  • Note appears only when the first spawn failed and a second spawn ran
  • Item is done:false while the retry is running and done:true after
  • First-try success and stop/cancel before retry: no note
  • A second failure still fails the phase; the note still appears and ends done

Follow-up to #819 (which landed the line as already-done via appendDoneWorkLog). Crash-resume remains #182. Persist/resume flags stay #815. Kimi flags unchanged.

Steps

  • Failing tests: note iff first spawn failed and a second spawn ran; done:false while retrying; done:true after
  • runOneAgent uses beginWorkLogStep before the second spawn and completeWorkLogStep when it finishes
  • Prove first-try success and stop/cancel do not write the note

Activity

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

    @currentbits
    OwnerAuthor

    Implemented on this worktree: beginWorkLogStep before the second spawn, completeWorkLogStep when it finishes. Tests in electron/test/workflow-retry-note.test.js (4/4) plus related workflow suites (36/36). Nothing committed.

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