Repository navigation
fix(workboard): prevent freezes when refreshing labeled boards - #156150
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: needs maintainer review before merge. Reviewed September 23, 2026, 12:20 AM ET / 04:20 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR batches Workboard card-label layout, observes only label containers, adds resize regression coverage, and refreshes the plugin’s browser asset references. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main retains the reported rendering hotspot, and the supplied browser evidence shows substantial improvement. No blocking introduced defect was found. Priority: P1 Review scores
Verification
How this fits togetherWorkboard displays cards loaded through the Gateway in OpenClaw’s Control UI. Its label renderer measures available space and chooses which labels and overflow counts each card shows. flowchart TD
A[Gateway card data] --> B[Workboard card rendering]
B --> C[Shared label measurement queue]
D[Container resize] --> C
C --> E[Measure available label space]
E --> F[Visible labels and overflow descriptions]
G[Card disconnects] --> H[Remove pending measurement]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +32, Tests +78. Total +110 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one plugin-local layout owner that batches card measurements while preserving responsive overflow counts and accessible label descriptions. Do we have a high-confidence way to reproduce the issue? Yes: the 150-card labeled-board scenario, supplied browser timings, and unchanged current-main renderer establish a concrete reproduction path. This review did not execute it or independently confirm a sustained observer loop. Is this the best way to solve the issue? Yes: batching reads and writes in the existing Workboard renderer addresses the observed hotspot without adding configuration, competing implementations, or persistent width caches. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e79899fedc2. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Landed in 6055b40. Container-only observation and batched label measurements remove the per-card layout stalls: our 150-card Chromium run improved first-visible cards from 4,989 ms to 901 ms, with the longest task falling from 2,359 ms to 207 ms. The focused regression fails on the original source and passes after the fix; exact-head CI and hosted review were green. Thanks @sonofakel for the detailed report and @sunlit-deng for the original fix and reproduction. |
…law#156150) Closes openclaw#155993 ## What Problem This Solves Fixes multi-second Control UI stalls when opening Workboards with many labeled cards. ## User Impact Large boards render without repeated per-card label layout stalls. Overflow counts, accessible hidden-label descriptions, and responsive resizing are preserved. No configuration or migration is required. ## Why This Change Was Made Label overflow observes only the container, skips unchanged widths, and batches chip preparation, geometry reads, and visibility writes across cards. This removes both self-observation and the forced layout between each card's measurements. Pending work is removed when cards disconnect. Measurements remain local to each rendering pass rather than retaining intrinsic widths across font or style changes. ## Evidence - Real Chromium Control UI `/workboard`, freshly built native Workboard plugin, mocked Gateway WebSocket, 150 synthetic cards with two overflowing labels each, 1280×900 viewport on macOS/M3 Ultra. - Before: first visible cards at **4,989 ms**, long tasks of **1,881 / 2,359 / 2,262 ms**. Final contributor-preserving revision: first visible cards at **901 ms**, longest task **207 ms**. An earlier run of the same batching implementation measured 705 ms / 95 ms. These are browser measurements, not benchmark guarantees. - The baseline reproduced substantial label-layout stalls, but not the reporter's full 10–15-second duration or a sustained idle observer loop on this machine. Both versions settled during the idle observation window. - Focused regression fails on the original source because an unchanged-width observer delivery mutates the settled labels; passes after the fix. It also checks widening and narrowing restore the expected visible chips and hidden-label title. Final run: 1 test passed, 64 ms test time, 4.56 s command wall time. - Simplification retained one plugin-local batching owner and removed the cross-render width cache. Contributor commit is preserved; no schema, configuration, or permission changes. ### Before <img width="1280" height="900" alt="Workboard before: 150 synthetic cards with overflowing labels" src="https://github.com/user-attachments/assets/91066cb3-cac1-4143-9711-f1babd7e213b" /> ### After <img width="1280" height="900" alt="Workboard after: same labels and overflow counts without per-card layout stalls" src="https://github.com/user-attachments/assets/674785e4-5dd7-43e6-9657-0b76683041ee" /> Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #155993
What Problem This Solves
Fixes multi-second Control UI stalls when opening Workboards with many labeled cards.
User Impact
Large boards render without repeated per-card label layout stalls. Overflow counts, accessible hidden-label descriptions, and responsive resizing are preserved. No configuration or migration is required.
Why This Change Was Made
Label overflow observes only the container, skips unchanged widths, and batches chip preparation, geometry reads, and visibility writes across cards. This removes both self-observation and the forced layout between each card's measurements. Pending work is removed when cards disconnect. Measurements remain local to each rendering pass rather than retaining intrinsic widths across font or style changes.
Evidence
/workboard, freshly built native Workboard plugin, mocked Gateway WebSocket, 150 synthetic cards with two overflowing labels each, 1280×900 viewport on macOS/M3 Ultra.Before
After