Skip to content

fix(workboard): preserve peer column edits on a Sessions board rename - #206292

Merged
vincentkoc merged 2 commits into
mainfrom
fix/workboard-session-column-noop-rename
Nov 27, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/workboard-session-column-noop-rename

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What problem does this solve?

Two people can edit a Sessions board at the same time. If one person renames the board and types A into a column already labeled A, the normalized label is unchanged. Saving used to submit the entire list of columns from the open editor. That could undo a peer’s saved change to a different column. Choosing a different fallback column and then switching back could trigger the same overwrite.

What changed?

The editor compares the normalized opening and outgoing columns before saving board metadata. For this comparison, an omitted fallback flag and an explicit false mean the same thing. A genuine column edit still sends the validated column values. This extends @steipete’s earlier rename fix to edits that normalize back to the opening values. Original rename fix · Solid UI port

Evidence

  • The original registered-handler reproduction changed a peer column from B to C before the appearance save. After the save, SQLite and a fresh editor both showed B. Independent replays with a leading space and a trailing space reproduced the same loss.
  • On the current parent, both mounted editor regressions received B instead of C; three controls passed. All five passed with the repair.
  • With the production handler and SQLite, clicking Save after moving the fallback from Done to Working committed one fallback change. A fresh editor showed Working. After moving away and back, renaming the board sent only the metadata update and preserved the peer’s column.
  • On the final formatted tree, the reduced Desk → Desk review case was replayed against the registered Workboard handlers. After the peer committed C, Save emitted one metadata update and zero column writes. Independent SQLite and a fresh editor both retained C.
  • The declared Workboard UI package build succeeded. The generated manifest resolved to a 19,746-byte JavaScript entry and a 94,200-byte stylesheet in the same asset generation.
  • Matched-base UI performance. The first release run compared the original branch with a main revision 23 commits beyond its parent and reported +111 B of chat-boot gzip. After merging main into this branch, the hosted job compared the reviewed PR tree against that exact main parent. Chat boot measured 1,336,732 B and 21 requests on both sides (+0 B). Original comparison · Matched comparison

The editor proofs used mounted jsdom components, registered handlers and SQLite. The build verified the packaged browser assets. An interactive capture from an installed dashboard remains unmeasured. Redacted replay records

@vincentkoc vincentkoc self-assigned this Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR compares normalized Sessions board columns so ineffective edits do not overwrite a peer’s saved changes.

Example: An editor renames Desk to Desk review and changes label A to A after a peer changes another label from B to C.

  • Before: Save submits stale columns and restores B.
  • After: Save updates only board metadata and preserves C.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch has no identified defect, but required shipped-entry-point proof remains unestablished; stored formats and migration behavior are unchanged.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
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 after an ineffective column edit can silently undo another editor’s saved column change.
Reason: The focused maintainer-authored repair restores the established separation between metadata saves and actual column edits.

Merge readiness

✅ Ready for maintainer review

This PR repairs a concrete peer-edit overwrite with a focused change; source review found no introduced correctness or security defects.

Reviewed head: 0eaaa51be15f3383ff2a1ea3589f39078f33270c

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Show the padded-label and fallback-round-trip rename cases through the shipped Workboard UI and Gateway, with peer C preserved after reopening and a genuine fallback edit still saved; redact sensitive values.
Agent review details

How this fits together

The Workboard board editor turns local drafts into Gateway metadata and column updates, which the plugin persists in SQLite.

flowchart LR
  A[Board editor draft] --> B[Normalize columns]
  B --> C[Compare opening values]
  C --> D[Board metadata update]
  C --> E[Changed columns update]
  D --> F[Workboard SQLite store]
  E --> F
Loading

Technical review

Best possible solution:

Keep the normalized comparison in the existing editor owner and retain the current metadata and column persistence contracts.

Do we have a high-confidence way to reproduce the issue?

Main’s raw dirty comparison and whole-column replacement establish the reported overwrite path; the author also reports failing mounted-editor regressions on the parent, but this review ran no target code.

Is this the best way to solve the issue?

The patch fixes the producer’s effective-change decision with the existing normalizer, preserves validation and genuine edits, and adds no competing state or persistence owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 103f40f50782.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d56331a adds extensions/workboard/browser/pages/workboard/view-board-modal.tsx:105 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d56331a993ee; files: extensions/workboard/browser/pages/workboard/view-board-modal.tsx)
  • Vincent Koc: Raw commit 9ad935f adds extensions/workboard/browser/pages/workboard/view-sessions-board-modal.test.ts:37 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9ad935f281e0; files: extensions/workboard/browser/pages/workboard/view-sessions-board-modal.test.ts)

PR surface

Source +10, Tests +63. Total +73 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 16 6 +10
Tests 1 67 4 +63
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 83 10 +73

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide redacted shipped-UI evidence for the scenarios named in the proof assessment.

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 execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-27T02:01:16.233Z sha 39cb053 :: passed. :: none

Reviewed November 26, 2026, 9:17 PM ET / November 27, 2026, 02:17 UTC (Revision 2).

@vincentkoc

Copy link
Copy Markdown
Member Author

Redacted replay diagnostics for the reviewed head 39cb0531. These are selected records from the mounted editor, registered Workboard handlers, and independent SQLite reads.

Padded label + rename on the final tree Observed result
Peer update acknowledged (16), SQLite read (17) The peer changed the second column from B to C. The open editor still displayed B.
Editor clicked Save after typing A and renaming the board (18–19) One workboard.boards.upsert succeeded. The editor sent zero workboard.sessionsBoard.update requests.
SQLite read after Save (22), new editor read (29) The board reopened as Desk review, with columns A and C.

The genuine-edit control ran on the same repair before the formatter wrapped one expression. Choosing Working and clicking Save sent one column update (23). The committed fallback changed once, done → working (25); SQLite and a fresh editor both returned working. Choosing Working and then Done before Save sent zero column updates and preserved the peer’s C.

@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 02:12
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc
vincentkoc merged commit 953ff51 into main Nov 27, 2026
179 checks passed
@vincentkoc
vincentkoc deleted the fix/workboard-session-column-noop-rename branch November 27, 2026 05:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
…#206292)

(cherry picked from commit 953ff51)

Companion audit: 43f1dd8, 861f75f, 935d623, eb378fa and f03c68a touch later UX/board API paths, not the stable normalized rename invariant.

Release adaptation: Keep the stable Workboard board modal and carry only the new peer-change regressions into a focused browser-owner spec; do not assume the prior main-only spec split.

Co-authored-by: RomneyDa <[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 impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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