You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
User-facing Retry for a failed workflow phase agent #825
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:
Kimi flags unchanged (sessionId: null, no -S / -c)
One work-log line, e.g. Plan agent 1 retrying (beginWorkLogStep while the spawn runs, completeWorkLogStep when it finishes)
No transcript event
Rejects while a run is already active
Hidden while the thread is working; shown for failed / idle / done when the agent itself is failed
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
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).
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).
Activity
currentbits commentedon Sep 2, 2026
Implemented on this worktree (not committed).
runs.retryWorkflowAgent({ threadId, agentId })re-spawns a failed slot after the run ends (same overlay, no--resume, nothread.sessionId).Verified: electron retry suite 5/5, renderer 4/4, existing workflow suites 24/24.
currentbits commentedon Sep 2, 2026
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).
currentbits commentedon Sep 2, 2026
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, nothread.sessionId).Verified: electron retry suite 6/6, renderer 4/4, existing workflow suites 32/32, typecheck + IPC seam pass.
Transcript Retry-turn routing remains #830.
currentbits commentedon Sep 2, 2026
Engine landed on worktree
f699f15e(this branch):runs.retryWorkflowAgentre-entersstartWorkflowRun({ 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).
currentbits commentedon Sep 2, 2026
User-facing workflow retry landed on origin/main via #840.