Skip to content

Workflow Claude/Codex/OpenCode/Cursor phases cannot resume #808

Closed

Description

@currentbits

Decision

Yes for Claude (and Grok via claude-stream), Codex, OpenCode, and Cursor: persist the phase CLI session on the workflow agent slot and resume that same slot later. Same collision rule as #782: never write the id to thread.sessionId (a later interactive turn would resume the phase conversation). Sibling agents stay isolated.

Kimi is out of scope here (spawnAgentKimi stays sessionId: null). No automatic retry loop.

Resume flags (only when a real id exists)

Steps

  • Failing tests: spawn captures extractSessionId; retry emits the provider flag only for a real id; cwd/empty never resume; startWorkflowRun stores on the agent, not the thread
  • Shared persist: agent.sessionId + toPublicView + runOneAgent pass-back
  • Wire spawnAgentClaude / Codex / Opencode / Cursor (leave kimi)

Activity

  1. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Yes for Claude (and Grok via claude-stream), Codex, OpenCode, and Cursor — persist on the workflow agent slot, resume that same slot later. Never thread.sessionId. Never resume for cwd / empty.

    Kimi is unchanged (spawnAgentKimi still sessionId: null; #782). No automatic retry loop: the id is stored and passed back if that slot is spawned again.

    Resume flags (only with a real id):

    Verified: electron/test/workflow-phase-resume.test.js 17/17; related workflow + providers 28/28. Nothing committed.

  2. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Workflow phase resume (sessionId on spawnSlot) landed on origin/main via #840.

  3. 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