Repository navigation
fix(workboard): keep column edits on rename and validate list status - #167348
Conversation
Reject mistyped status filters with allowed choices instead of silently reporting an empty board. Reuse Commander choices through the existing command instance. Reproduced through the isolated CLI; the owner regression fails before and passes after the fix.
Track the original session-board draft alongside appearance fields and publish columns only when edited. A metadata-only save no longer overwrites concurrent column changes. Proven with two real browser tabs, a failing-before/passing-after owner regression, synthetic screenshots, related suites and changed checks. Refresh generated Control UI asset references.
The fallback flag lives on each column, and the rename dirty check compares the full structuredClone'd column snapshot, so a fallback-only edit is still published. Pin that behavior next to the two-tab rename regression.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 1:29 PM ET / 17:29 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR preserves concurrent Sessions-board column edits during metadata-only saves and rejects invalid Workboard CLI status filters. Example: Tab B renames a Sessions board after tab A edits a column.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains necessary: current main retains both reported silent failures. The focused repair has direct browser proof and no identified blocking defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherWorkboard is a plugin that displays cards and session boards in the Control UI and exposes card commands in the CLI. Browser edits go through Gateway methods; CLI listing reads the plugin’s SQLite-backed card store. flowchart TD
A[Operator edits board] --> B[Board editor draft]
B --> C{Columns edited?}
C -->|No| D[Save metadata only]
C -->|Yes| E[Save metadata and columns]
F[CLI status filter] --> G[Validate shared status choices]
G --> H[Matching cards or explicit error]
Technical reviewBest possible solution: Keep metadata-only saves independent of column replacement and validate CLI filters using the existing shared status vocabulary. Do we have a high-confidence way to reproduce the issue? Yes: current-main source establishes the stale two-tab save and the runnning status-filter failure; the browser comparison corroborates the former. This read-only review did not execute target code. Is this the best way to solve the issue? Yes: the patch repairs the existing browser draft owner and reuses Commander validation without adding a competing update path or configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 56c033e8267a. Provenance checked
TestingProof path: shipped entry point. Added test files: 2. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +78, Docs +3. Total +91 across 7 files. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…penclaw#167348) * fix(workboard): reject invalid list status filters Reject mistyped status filters with allowed choices instead of silently reporting an empty board. Reuse Commander choices through the existing command instance. Reproduced through the isolated CLI; the owner regression fails before and passes after the fix. * fix(workboard): preserve columns when renaming session boards Track the original session-board draft alongside appearance fields and publish columns only when edited. A metadata-only save no longer overwrites concurrent column changes. Proven with two real browser tabs, a failing-before/passing-after owner regression, synthetic screenshots, related suites and changed checks. Refresh generated Control UI asset references. * test(workboard): cover fallback-only session board saves The fallback flag lives on each column, and the rename dirty check compares the full structuredClone'd column snapshot, so a fallback-only edit is still published. Pin that behavior next to the two-tab rename regression. * chore(workboard): refresh Control UI asset references Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Two Workboard bugs, each one a silent failure:
extensions/workboard/browser/pages/workboard/view-board-modal.tsalways submitted the draft's columns, even when they hadn't been edited. This came in with8c02b95a1a6.openclaw workboard list --status runnning --jsonsucceeded and returned{cards: []}.extensions/workboard/src/cli.tsaccepted any status text and filtered on it unvalidated. This came in withed46e62bcc5.Why This Change Was Made
structuredCloneof the full original columns. A dedicated test covers this. This change doesn't add general conflict detection for two tabs editing the same column at once.--statusoption uses Commander's existingchoicessupport (+5/−1 production). A typo now fails, lists the valid statuses, and points toopenclaw workboard list --help.The docs are updated for both. There are no protocol, storage or dependency changes.
User Impact
Renaming a board no longer reverts column changes made elsewhere. A mistyped status filter gets a clear error instead of a misleading empty board.
Evidence
The real-browser two-tab repro uses synthetic data. Left, before: tab A's column edit is reverted to "Needs input". Right, after: "Column changed by tab A" survives tab B's rename and a reload.
node scripts/check-changed.mjspasses.