Repository navigation
fix(workboard): keep disclosures and owner updates reactive - #182293
Conversation
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2924588f01c1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +108, Tests +53. Total +161 across 36 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 24, 2026, 2:24 AM ET / 06:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#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
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
src/gateway/assistant-human-mentions.tsunused-file failure; same failure verified on baseThe focused files are
live-refresh.test.ts,view-filters.test.ts, andworkboard-page.test.ts. PR CI withci:fullsupplies the broader UI, WebKit, and Gateway proof. No local full UI or E2E suite was run.Solid audit
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.
untrackcaptures the initial clock value and reads an imperative draft handle without subscribing its parent. The manual loader owns aControlUiView, 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.
CI repair and final-head proof
The initial full run (
40069073796) exposed an obsolete assertion inWorkboardView > 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
40071192343then 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 memocurrentHostto satisfy no-shadow; focused lint and independent review pass.Run
40076442442passed 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;mainat651f9701c17was merged without conflicts. The queued Testboxtbx_01m5pd8by2ax5r07q7y34wt403(40074607994) is confirmed completed; its payload never ran and no lease remains.Final-head run
40077377538attempt 2 passed 47 jobs (23 skipped), including all UI unit and real-Gateway shards. The sole failing case isControl UI chat shell regressions > does not republish run activity for successive text deltas, with expected 0 / received 1. Completed scheduled-main run40078639310(headee855ce57341eb3259741087681be0b0e1ec837c) 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.