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
Crash recovery must close a mid-retry workflow work-log line #824
A workflow that dies mid-retry must fail closed on the next process start. Do not leave Plan agent 1 retrying (or any other in-progress work-log item) at done:false forever.
Hook: recoverInterruptedRuns in electron/store.js (already stamps working threads failed and appends the crash event)
Also mark every done:false work-log item on those recovered threads done:true
Same item, same label, same id — only done flips
Idle / clean-quit threads are untouched (including any leftover work-log)
Slice of #182. Follow-up to #823 (in-progress retry line during a live same-process retry). If the app crashes during that second spawn, boot recovery must finish the line.
Steps
Failing tests: mid-retry done:false becomes done:true on Store load; sibling in-progress phase line also closes; idle work-log untouched; already-done items stay done; healed line survives a second load
recoverInterruptedRuns completes in-progress work-log items on recovered working threads (mutate data.workLogByThread in place — store.data is not assigned yet)
Tests: electron/test/workflow-crash-resume.test.js (also on the Windows electron list).
Verified
New suite: 4/4
electron/test/store.test.js + new suite: 87/87
Not in this slice: re-spawn the second CLI, --resume (#815), resume-from-phase-N (rest of #182), Retry button. Kimi flags unchanged. Nothing committed.
Activity
currentbits commentedon Sep 2, 2026
Done
recoverInterruptedRunsnow fail-closes in-progress work-log items on recovered working threads.doneflips totruedone:false)data.workLogByThreadin place (store.data is not assigned yet during_readFile)_recoveredOnLoadsaveTests:
electron/test/workflow-crash-resume.test.js(also on the Windows electron list).Verified
electron/test/store.test.js+ new suite: 87/87Not in this slice: re-spawn the second CLI,
--resume(#815), resume-from-phase-N (rest of #182), Retry button. Kimi flags unchanged. Nothing committed.