Skip to content

fix(workboard): prevent freezes when refreshing labeled boards - #156150

Merged
obviyus merged 5 commits into
openclaw:mainfrom
sunlit-deng:sunlit/fix/issue-155993
Sep 23, 2026
Merged

obviyus merged 5 commits into
openclaw:mainfrom
sunlit-deng:sunlit/fix/issue-155993

Conversation

@sunlit-deng

@sunlit-deng sunlit-deng commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 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

Workboard before: 150 synthetic cards with overflowing labels

After

Workboard after: same labels and overflow counts without per-card layout stalls

@clawsweeper

clawsweeper Bot commented Sep 23, 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 P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 12:20 AM ET / 04:20 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: de221ce5d23195407a542bc665de199f2a65b62f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with convincing browser measurements, inspected visual evidence, and meaningful regression coverage; no blocking correctness issue was found.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied real Chromium run exercises the built Workboard renderer through /workboard with 150 labeled cards and records substantially faster rendering after the fix; inspected screenshots preserve visible overflow behavior. The Gateway is mocked, but browser layout—the changed production boundary—is real. The final explicit-undefined edit is behavior-preserving, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied real Chromium run exercises the built Workboard renderer through /workboard with 150 labeled cards and records substantially faster rendering after the fix; inspected screenshots preserve visible overflow behavior. The Gateway is mocked, but browser layout—the changed production boundary—is real. The final explicit-undefined edit is behavior-preserving, and no stored-data contract changes.
Evidence reviewed 8 items Verified introduced changes: The pinned merge-base-to-head diff changes only the label renderer, its focused regression test, and browser asset references. Preparation, geometry reads, and visibility writes run in separate batches; disconnect cleanup removes queued work.
Still necessary on current main: Fetched main still measures and updates each card separately and observes child chips. Its renderer is identical to the renderer in the supplied latest release, v2026.9.5; neither contains this repair.
Browser behavior evidence: The captured PR body reports real Chromium running the built Workboard page with a mocked Gateway, 150 synthetic labeled cards, and a 1280×900 viewport on macOS/M3 Ultra. First visible cards improved from 4,989 ms to 901 ms; the longest reported task fell from 2,359 ms to 207 ms. Both versions settled during idle observation, so this supports reduced layout stalls without establishing a sustained observer loop. Captured context sourceRevision: e7199933567fb9f44ae8373d8f1a5e588bd1e1b15bcca5fb945fb933506c1520.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +32, Tests +78. Total +110 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 81 49 +32
Tests 1 78 0 +78
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 159 49 +110

Review metrics

Metric Value Why it matters
Reported browser improvement First cards: 4,989 → 901 ms; longest task: 2,359 → 207 ms The same 150-card browser scenario directly exercises the repaired rendering hotspot; these measurements are environment-specific.
Production versus test growth Production net +32 lines; tests +78 lines Production growth has a concrete purpose: one shared layout batch with lifecycle cleanup replaces per-card measurement churn.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P1: Multi-second browser stalls disrupt the existing Workboard workflow on the current release, with matching reporter profiles and before/after browser measurements.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied real Chromium run exercises the built Workboard renderer through /workboard with 150 labeled cards and records substantially faster rendering after the fix; inspected screenshots preserve visible overflow behavior. The Gateway is mocked, but browser layout—the changed production boundary—is real. The final explicit-undefined edit is behavior-preserving, and no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied real Chromium run exercises the built Workboard renderer through /workboard with 150 labeled cards and records substantially faster rendering after the fix; inspected screenshots preserve visible overflow behavior. The Gateway is mocked, but browser layout—the changed production boundary—is real. The final explicit-undefined edit is behavior-preserving, and no stored-data contract changes.

Evidence

What I checked:

  • Verified introduced changes: The pinned merge-base-to-head diff changes only the label renderer, its focused regression test, and browser asset references. Preparation, geometry reads, and visibility writes run in separate batches; disconnect cleanup removes queued work. (extensions/workboard/browser/pages/workboard/view-card-content.ts:90, de221ce5d231)
  • Still necessary on current main: Fetched main still measures and updates each card separately and observes child chips. Its renderer is identical to the renderer in the supplied latest release, v2026.9.5; neither contains this repair. (extensions/workboard/browser/pages/workboard/view-card-content.ts:90, 0e79899fedc2)
  • Browser behavior evidence: The captured PR body reports real Chromium running the built Workboard page with a mocked Gateway, 150 synthetic labeled cards, and a 1280×900 viewport on macOS/M3 Ultra. First visible cards improved from 4,989 ms to 901 ms; the longest reported task fell from 2,359 ms to 207 ms. Both versions settled during idle observation, so this supports reduced layout stalls without establishing a sustained observer loop. Captured context sourceRevision: e7199933567fb9f44ae8373d8f1a5e588bd1e1b15bcca5fb945fb933506c1520.
  • Before and after images inspected: Inspected both downloaded images identified by the media manifest. They show the 150-card board with the same visible label chips and +1 overflow indicators. The images support visual preservation; the separately supplied browser measurements support the performance result.
  • Focused regression and review continuity: The test exercises the production card renderer, unchanged-width notifications, widening, narrowing, and hidden-label titles. The body records failure on original source and a passing final run of 64 ms test time and 4.56 s command wall time. The previous review retained no findings; GitHub’s exact-head commit patch confirms the subsequent change only makes the skipped measurement return explicitly undefined. No tests were executed during this read-only review. (extensions/workboard/browser/pages/workboard/view-card-content.test.ts:9, de221ce5d231)
  • Existing product boundary: Workboard documents labels and canonical card reloads following change events. The board-card renderer calls the changed metadata renderer directly. This patch changes browser layout only, with no new plugin API, configuration, stored-data format, permission, or dependency contract. Public docs: docs/plugins/workboard.md. (docs/plugins/workboard.md:104, de221ce5d231)

Likely related people:

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

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-23T04:07:33.068Z sha 00ab9a6 :: needs maintainer review before merge. :: none

@obviyus
obviyus merged commit 6055b40 into openclaw:main Sep 23, 2026
135 checks passed
@obviyus

obviyus commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
…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]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
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 P1 High-priority user-facing bug, regression, or broken workflow. plugin: workboard proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

[Bug]: Workboard view freezes for 10+ s per visit: ResizeObserver feedback loop in labelOverflowRef (2026.9.5)

2 participants