Skip to content

Automatic workflow retry should leave a work-log note #819

Closed

Description

@currentbits

Decision

Yes: a bounded automatic retry must leave one visible work-log line on the same agent slot.

  • One line, e.g. Plan agent 1 retrying
  • Same agent (no sibling)
  • Never write thread.sessionId
  • Work-log only (no transcript event, no Retry button)
  • Note appears only when the first spawn failed and a second spawn ran
  • First-try success: no note
  • Stop/cancel before retry: no note
  • Second failure still fails the phase; the note still appears because the retry ran

Builds on #815 (same-slot retry). Persist/resume flags and kimi -S/-c stay out of this issue. Crash-resume remains #182.

Steps

  • Failing tests: note iff first spawn failed and a second spawn ran; no sibling; thread.sessionId untouched
  • runOneAgent appends one appendDoneWorkLog line on the same slot immediately before the second spawn
  • 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 in worktree coder/fork-fork-fork-kimi-workflow-phases-cann-af8c56 (uncommitted).

    runOneAgent now retries once on the same slot and appends one work-log line (Plan agent 1 retrying) immediately before the second spawn. First-try success and stop-during-first write no note. thread.sessionId stays null. Persist/resume remains #815.

    Tests: electron/test/workflow-retry-note.test.js 4/4. Related workflow suites 36/36.

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