Skip to content

fix(workboard): keep column edits on rename and validate list status - #167348

Merged
steipete merged 4 commits into
mainfrom
fix/w11-m2
Oct 8, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/w11-m2

Conversation

@steipete

@steipete steipete commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two Workboard bugs, each one a silent failure:

  1. Renaming a Sessions board silently overwrote another operator's column edits. Open Edit board in two tabs. In tab A, change a column label and save. In tab B, change only the board name and save. Tab B's save restored its stale column snapshot, so tab A's edit vanished with no warning. extensions/workboard/browser/pages/workboard/view-board-modal.ts always submitted the draft's columns, even when they hadn't been edited. This came in with 8c02b95a1a6.
  2. A mistyped CLI status reported an empty board. With a running card present, openclaw workboard list --status runnning --json succeeded and returned {cards: []}. extensions/workboard/src/cli.ts accepted any status text and filtered on it unvalidated. This came in with ed46e62bcc5.

Why This Change Was Made

  1. The modal already tracks the original draft. The fix extends that tracking to columns, so they're only sent when they were actually edited (+9/−3 production). Board rename and column edit stay independent. A fallback-only edit is still saved, because the fallback flag lives on each column and the dirty check compares a structuredClone of 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.
  2. The --status option uses Commander's existing choices support (+5/−1 production). A typo now fails, lists the valid statuses, and points to openclaw 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.

Workboard rename before/after

  • Both regression tests fail before the fixes and pass after.
  • Remotely (Blacksmith Testbox), 631 Workboard-related tests pass: 373 source tests, 241 browser tests, and 17 plugin lifecycle/index/Doctor tests. node scripts/check-changed.mjs passes.
  • These real-browser flows pass: empty board, card creation, inline notes, two-tab conflict with draft retention, retry, move and reload, Gateway restart and reconnect persistence, drag to Done, archive, a 120-card board, and 390px mobile width.
  • The real CLI rejects the typo with guidance.
  • Known gap: navigating PR links in a real browser wasn't exercised. The existing PR-link tests pass.

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.
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 8, 2026 17:15
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: workboard size: S labels Oct 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 1:29 PM ET / 17:29 UTC (Revision 2).

ClawSweeper review

What this changes

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

  • Before: Tab B restores the stale column label “Needs input.”
  • After: “Column changed by tab A” survives the rename and reload.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused repair with direct browser evidence, meaningful contract coverage, and no identified blocking defect.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The inspected before/after image and complete PR description show the real browser board editor preserving “Column changed by tab A” after a two-tab rename and reload using synthetic data; the body also reports real CLI typo rejection. Tests and broader checks are supplemental contributor-reported results. Existing stored formats and schemas are unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Renaming a Sessions board can erase another operator’s column edits, and a mistyped status filter misleadingly reports no cards.
Reason: Both changes repair concrete silent failures in existing owners. Prior merged history establishes area ownership, and the patch preserves valid filters, editable columns, and metadata-only save semantics.

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
Reviewed head: 7ff274db6d9ce1d4576bbba312ef1fb722284608

Before merge

None.

Findings

None.

Agent review details

How this fits together

Workboard 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point. Added test files: 2.

Security

None.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source +10, Tests +78, Docs +3. Total +91 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 3 16 6 +10
Tests 2 78 0 +78
Docs 2 4 1 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 98 7 +91

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The PR repairs bounded Workboard edit loss and misleading CLI results without evidence of an urgent system-wide regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-08T17:23:07.470Z sha 7ff274d :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 4a92afb into main Oct 8, 2026
182 of 187 checks passed
@steipete
steipete deleted the fix/w11-m2 branch October 8, 2026 17:39
@steipete

steipete commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant