Repository navigation
fix(workboard): flag archived cards stuck in an active dispatch status - #116524
sloptop-the-terrible wants to merge 1 commit into
Conversation
Archiving a card unconditionally cleared its diagnostics and stayed silent regardless of status, so a card archived while scheduled/ready/running (a race with in-flight dispatch, or a manual archive) stalls forever with no signal anywhere that dispatch will never pick it up again (openclaw#116359). computeCardDiagnostics now reports a new archived_but_active diagnostic for archived cards left in one of those statuses, and refreshDiagnostics only skips rewriting an archived card's stored history when there is nothing new to report, preserving the existing no-rewrite guarantee for the common case (archived while done). CLI/board text output also marks archived cards inline so the state is visible without opening diagnostics.
|
Thanks for the context here. I did a careful shell check against current Current So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the canonical current-main implementation from #117290, release it through the normal train, and do not merge this superseded branch. Do we have a high-confidence way to reproduce the issue? No current-main reproduction remains: current source emits the archive diagnostic for any archived non- Is this the best way to solve the issue? No, this is not the best branch to merge: #117290 is already merged on current main and uses a transient diagnostic, avoiding the stale persisted-warning case in this patch. Security review: Security review cleared: The branch changes Workboard diagnostics, rendering, documentation, and contract enumeration only; no dependency, permission, secret, or execution-path concern was found. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against b84e14f22255; fix evidence: commit f2b3d1588f91, main fix timestamp 2026-08-02T07:30:52-07:00. |
d73a6f2 to
010f655
Compare
Real behavior proof (before/after, no mocking of the fix's own code)Per the review's ask for actual before/after evidence rather than unit tests with mocks, What I ranA standalone script that:
Ran with Node 24's native TypeScript support ( What was NOT the real path: the sqlite persistence backend ( BEFORE (parent commit
|
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
computeCardDiagnosticsreturns no diagnostics at all for any archived card, regardless of status. Archiving happens unconditionally on whatever status a card is in — a race with in-flight dispatch, or a manual archive — so a card archived whilescheduled,ready, orrunningstalls forever with zero signal anywhere (CLI, board text, diagnostics) that dispatch will never pick it up again (#116359).Why This Change Was Made
Added a new
archived_but_activediagnostic kind, reported bycomputeCardDiagnosticsonly when an archived card's status is in{scheduled, ready, running}— the statuses where dispatch would otherwise promote, start, or reclaim it.WorkboardStore.refreshDiagnosticspreviously skipped every archived card unconditionally to avoid rewriting its stored history; it now only skips when the freshly computed diagnostics are empty, so the common case (archived whiledone) is unchanged and covered by the existingstore.test.tsregression ("keeps archived cards out of diagnostics without rewriting their history" — that test archives adonecard, which stays outside the active-status set and produces no diagnostic either way). CLI (extensions/workboard/src/cli.ts) and chat command (command.ts) output also mark archived cards inline so the state is visible without opening diagnostics separately.User Impact
An archived card left in an active dispatch status now surfaces a clear
archived_but_activewarning (in diagnostics output and inline in card listings) instead of silently stalling with no path to notice it needs unarchiving or moving todone.Evidence
store.test.ts"keeps archived cards out of diagnostics without rewriting their history" test archives a card with statusdone, which is not in the new active-status set, socomputeCardDiagnosticsstill returns[]for it and the no-rewrite path is unaffected.packages/workboard-contract/src/index.ts'sWORKBOARD_DIAGNOSTIC_KINDSis the single source of truth consumed by both the store and docs table; the new kind was added there so all consumers stay in sync.Fixes #116359