Skip to content

fix(workboard): keep disclosures and owner updates reactive - #182293

Merged
steipete merged 5 commits into
mainfrom
solid2/w-s2-workboard
Oct 24, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/w-s2-workboard

Conversation

@steipete

@steipete steipete commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Workboard's list disclosures could retain their initial click handler after collapse, and its Solid views still depended on callback-driven rendering updates and queries into their own DOM.

User Impact

List groups expand and collapse repeatedly, route focus targets the live search control, and async Workboard reads and mutations notify every observer through their scoped owner. Existing tags, selectors, layouts, lazy page loading, write admission, and draft recovery stay intact.

Why This Change Was Made

The existing Workboard runtime now owns change notifications; the page and widgets subscribe to that owner instead of passing rendering callbacks through domain operations. Native handlers read current state. Ref-owned elements and explicit draft handles replace DOM rediscovery without moving domain authority into Solid. Four consumers share a small plugin-local element-ref primitive, and external listeners return their paired teardown. These use documented SDK contracts; no host UI internals are imported.

Evidence

Proof Result
List disclosure regression against base implementation Red: first collapse retained expanded presentation
Three focused test files 49 passed; final affected rerun has no Solid diagnostics
UI typecheck Passed
Workboard browser + test typecheck Passed with scoped tsrs config
Production plugin build / asset validation Passed; 3 JS + 2 CSS assets on both sides
Independent review P0–P2 clean
Production Knip Only unchanged src/gateway/assistant-human-mentions.ts unused-file failure; same failure verified on base
Synthetic built-plugin visual capture Board and detail drawer are pixel-identical before/after

The focused files are live-refresh.test.ts, view-filters.test.ts, and workboard-page.test.ts. PR CI with ci:full supplies the broader UI, WebKit, and Gateway proof. No local full UI or E2E suite was run.

Solid audit

Pattern Before After
Rendering-controller / requestUpdate contracts 13 files 0
Feature render effects 0 0
Direct TSX listeners 10 0
All raw listeners 23 14
Own-DOM queries 15 0
Effects 11 9
Component / view cleanup registrations 8 3
Untrack 2 2
Owner APIs, production flush, hand-written createComponent, JSX classList 0 0
Hand-built JSX class strings 8 0
For lists with stable keys 41 / 41 41 / 41
Async read boundaries / error boundaries 3 / 3 3 / 3
Generator actions / optimistic values 3 / 3 3 / 3
Solid projections, Solid snapshot, createRoot, JSON clones 0 0
Independent initial board-draft structuredClone 2 2
Manual ControlUiView loader 1 1

The remaining effects synchronize SDK-owned mounted controls, external timers/measurement/DOM state, and the inline draft identity. Ref measurement primitives and SDK mounts retain synchronous cleanup so disposal before settlement releases their resources. untrack captures the initial clock value and reads an imperative draft handle without subscribing its parent. The manual loader owns a ControlUiView, preserves host-controlled mount/error/retry semantics, and is not a Solid component loader. Owner loading and mutation admission facts remain plain TypeScript rather than becoming rendering-owned flags.

Production browser TS/TSX: 14,130 → 14,238 lines; growth is the explicit element/draft registrations and shared notification owner. No host startup imports changed. Built plugin totals: 1,515,061 → 1,514,395 raw bytes; 329,485 → 329,674 gzip bytes (gzip level 9). The small gzip increase buys the concrete ownership and keyboard fixes while remaining within plugin asset limits.

Before / after

Built plugin, synthetic fixture host, desktop 1440 × 1000. The fixture supplies deterministic cards and SDK mounts; it does not claim live Gateway evidence.

State Before After
Board Workboard before Workboard after
Detail drawer Workboard details before Workboard details after

CI repair and final-head proof

The initial full run (40069073796) exposed an obsolete assertion in WorkboardView > handles card status moves through busy: it expected cancellation for a synthetic keydown on a disabled select. Solid skips delegated events on disabled controls. The test retains its disabled/no-RPC/unchanged-card assertions and checks cancellation on the enabled keyboard path; the file reproduced red before the correction and passes all 22 cases afterward.

Run 40071192343 then exposed a synchronous loop in the new test harness. A props update could dispose and re-add its owner listener while the owner's notification Set was being iterated. The helper now memoizes host identity: prop-only renders retain the subscription, while an actual owner replacement replaces it. Production already subscribes stably, so its delivery semantics remain unchanged. The original details/editor assertions pass unchanged: 40 tests under pinned Bun. Complete logs corrected an earlier truncated-log interpretation; these timeouts were PR regressions, not capacity failures. The last helper-only correction names the memo currentHost to satisfy no-shadow; focused lint and independent review pass.

Run 40076442442 passed all three UI unit, all nine Control UI E2E, and both real-Gateway shards before that alias-only lint correction. The prior auto request was retired through native recovery; main at 651f9701c17 was merged without conflicts. The queued Testbox tbx_01m5pd8by2ax5r07q7y34wt403 (40074607994) is confirmed completed; its payload never ran and no lease remains.

Final-head run 40077377538 attempt 2 passed 47 jobs (23 skipped), including all UI unit and real-Gateway shards. The sole failing case is Control UI chat shell regressions > does not republish run activity for successive text deltas, with expected 0 / received 1. Completed scheduled-main run 40078639310 (head ee855ce57341eb3259741087681be0b0e1ec837c) fails the exact same case and assertion. The test has identical source objects in the actual CI baseline, tested merge, and scheduled-main head. After the initial strict text-locator collision, one permitted exact-job retry produced this matching baseline ordering failure. Native inherited-failure recovery is used only for this case and its downstream aggregate gate; no Workboard failure is waived. A separate test-only PR repairs the initial-delta wait and scopes transcript text locators.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T07:44:17.300832Z 7c4fb9e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR makes disclosure handlers read current state, centralizes Workboard notifications, and replaces DOM lookups with explicit element and editor references.

Example: Click the Todo list-group disclosure twice.

  • Before: The retained handler continues using its initial collapse action, preventing normal repeated toggling.
  • After: Each click reads the current collapsed state and alternates between collapse and expand.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful owner-directed repair with focused harness coverage and inspected visual parity; the delegated-event test mismatch still breaks exact-head validation.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate is exempt for this maintainer-authored PR; inspected built-plugin screenshots demonstrate synthetic board/drawer parity, while reported tests cover disclosure toggling, owner notifications, and focus.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Workboard list groups stop toggling correctly, and asynchronous owner updates depend on callers supplying presentation callbacks.
Reason: The maintainer-authored direction restores expected interactions and consolidates existing responsibilities without adding configuration, persistence, or public SDK contracts.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it repairs a current Workboard disclosure bug and consolidates notifications under the existing owner, but its keyboard-handler change breaks an existing CI test.

Priority: P2
Reviewed head: c0660a55038c7e23a2615656b992e2428f249527

Before merge

  • Update the disabled-select assertion for delegated events (P2) - Switching CardMoveControl from a direct keydown listener to Solid's delegated onKeyDown causes the existing busy case to fail: it dispatches ArrowRight on a disabled select and expects cancellation, but Solid deliberately skips disabled nodes, so dispatchEvent returns true. The exact-head checks-ui failure identifies this assertion. Restrict the cancellation expectation to the enabled keyboard case while retaining the busy case's disabled-control, no-request, and unchanged-card assertions.

Findings

  • [P2] Update the disabled-select assertion for delegated events — extensions/workboard/browser/pages/workboard/view-actions.test.ts:603-607

Tests

  • Missing end-to-end proof: The supplied synthetic screenshots establish visual parity but do not show repeated disclosure clicks, route-focus transitions, or asynchronous owner updates through the running Control UI.
Agent review details

How this fits together

The bundled Workboard browser plugin receives Gateway snapshots and mutation results through plain TypeScript owners, then notifies Solid page and widget observers to update their presentation.

flowchart LR
  A[Gateway responses] --> B[Workboard runtime owner]
  B --> C[Scoped subscriptions]
  C --> D[Solid page]
  C --> E[Dashboard widgets]
  F[User interactions] --> B
  D --> G[Element and editor references]
Loading

Technical review

Best possible solution:

Keep the runtime-owned notifications and current-state disclosure handler, and adapt the busy-select regression to delegated events while preserving its no-write checks.

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

Current main binds the disclosure's initial handler, contrary to Solid's bind-once event contract; the added test exercises repeated clicks, and the PR reports it failing on the base.

Is this the best way to solve the issue?

The change uses the existing runtime as the notification owner and keeps domain authority outside Solid; the element-reference primitive serves four production consumers without retaining competing DOM-query paths.

Full review comments:

  • [P2] Update the disabled-select assertion for delegated events — extensions/workboard/browser/pages/workboard/view-actions.test.ts:603-607
    Switching CardMoveControl from a direct keydown listener to Solid's delegated onKeyDown causes the existing busy case to fail: it dispatches ArrowRight on a disabled select and expects cancellation, but Solid deliberately skips disabled nodes, so dispatchEvent returns true. The exact-head checks-ui failure identifies this assertion. Restrict the cancellation expectation to the enabled keyboard case while retaining the busy case's disabled-control, no-request, and unchanged-card assertions.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2924588f01c1.

Provenance checked

  • Solid disclosure handlers, classes, references, and lifecycle keeps the original intent (0d4a332: The Solid port replaced Lit while preserving Workboard tags, layout, interactions, and live mutation authority.)
  • Runtime loading and mutation notifications keeps the original intent (e4a17ee: Controller modules were split along existing loading, mutation, and runtime responsibility boundaries while preserving behavior.)
  • Widget refresh ownership keeps the original intent (021e54d: Widgets reuse scoped load ownership and revision receipts to avoid unchanged downloads while retaining reconnect refreshes.)
  • Inline editor recovery and navigation guards keeps the original intent (86b9f2d: Card details preserve unsaved drafts, pending-save navigation guards, and retry after rejected property updates.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/workboard/browser/pages/workboard/view-actions.test.ts extensions/workboard/browser/pages/workboard/view-filters.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f4d6e4d adds extensions/workboard/browser/lib/workboard/mutations.ts:240 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f4d6e4d457ba; files: extensions/workboard/browser/lib/workboard/mutations.ts)
  • Vyctor H. Brzezowski: Raw commit 86b9f2d adds extensions/workboard/browser/lib/workboard/mutations.ts:265 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 86b9f2d8fab4; files: extensions/workboard/browser/lib/workboard/mutations.ts)

PR surface

Source +108, Tests +53. Total +161 across 36 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 31 371 263 +108
Tests 5 64 11 +53
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 36 435 274 +161

Review metrics

Metric Value Why it matters
Production versus test changes Production +371/-263; tests and test support +64/-11 Production growth supports shared notifications and explicit element/editor registrations; the added regression groups cover disclosure toggling, owner notifications, and route focus.

Labels

Label changes:

  • add P2: This fixes repeatable interaction failures in the optional Workboard UI, with limited blast radius.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This fixes repeatable interaction failures in the optional Workboard UI, with limited blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 execution lanes are retired.

Reviewed October 24, 2026, 2:24 AM ET / 06:24 UTC.

@steipete
steipete enabled auto-merge (squash) October 24, 2026 06:58
@steipete
steipete disabled auto-merge October 24, 2026 07:41
@steipete
steipete merged commit c48ef5c into main Oct 24, 2026
206 of 213 checks passed
@steipete
steipete deleted the solid2/w-s2-workboard branch October 24, 2026 09:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 25, 2026
…#182293)

* fix(workboard): align reactive views and owner notifications

* test(workboard): assert keyboard cancellation for enabled controls

* test(workboard): retain subscriptions across prop updates

* test(workboard): avoid shadowing the subscribed host
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. plugin: workboard proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant