Repository navigation
improve(ui): shorten catalog dashboard browser replay - #190397
Merged
Merged
Conversation
Co-authored-by: steipete <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
…#190397) Co-authored-by: steipete <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #189670
What Problem This Solves
The default catalog dashboard browser replay spends at least 72.5 seconds in fixed host-time waits even when
OPENCLAW_CATALOG_DASHBOARD_MS=0.User Impact
Faster browser replay with the same 24 triggers, exact catalog request counts, reconnect assertion, and capability-refresh assertion. No product behavior changes.
Why This Change Was Made
Compact mode pauses the Playwright clock after boot and advances it while actions finish. Every row joins expected catalog reads, delivered mock replies, UI readiness, and idle callbacks, then crosses another four seconds of browser time and joins work again before recording counts. Zero-read rows cross the same window. This covers the 2.5-second metadata debounce, 750 ms chat idle deadline / 50 ms fallback, and 500 ms shell idle delay.
The observer wraps the actual socket returned by the routed mock constructor. A held catalog reply must appear in its pending-ID set before release; that control failed with the inactive observer and passed with the correction. Config timestamps and synthetic capability expiry use browser time. Positive-duration elapsed-time pacing and its timeout formula are retained.
Net test lines: +133; production lines: 0. The remaining growth implements wire/idle observation, paused-clock action driving, and the held-reply control required to make settlement meaningful. The final cleanup shares the clock-poll loop and uses one response listener per socket, reducing the prior +137-line candidate without dropping assertions. No shared helper, production hook, config option, or budget allocation is added.
Evidence
The following measurements preceded that final mechanical cleanup. Same focused runner and isolated Chromium environment; host load varied, so every trial is shown. Baseline was at
b2bfad1071b0; the final candidate is based on87ba257f66d0, with identical target/catalog/settlement owners before the test edit.The third baseline is right-censored above 120 seconds; its ordering still determines the three-trial median. Measured case-median reduction: 90.558 s (95.2%). Vitest-total reduction: 109.20 s (85.1%). After-command walls: 20.739 / 20.622 / 20.667 s (median 20.667 s).
Baseline trial 3 stopped after
revisit-main-b. One bounded original-file rerun reproduced the 120-second timeout at the same stage (reporter case 127.621 s, Vitest total 145.27 s). Diagnostics showed a connected Gateway and ready UI, without recorded browser errors. Passing compact replays do not establish the cause or repair of that inherited navigation/deadline failure.Final-commit browser proof ran on Blacksmith Testbox
tbx_01m6bqkarv0ezmej27g2sytzje, run 41315520238. The remote command verified headb65e96ab3007035937c282524d8c5b96b66d79dfand test blob401049ebb380447129aac454eb6d86a277941b48before running:commands-only1 vs 0;catalog-change2 vs 1For both delayed-read rows, browser timestamps showed initial settlement at +100 ms and the read firing at +1500 ms: 1.4 seconds after settlement, inside the old three-second window. Both mutations and their logging probes were restored, and the remote command checked a clean diff for the two temporarily edited files.
The aggregate Crabbox command exited 0; the owned lease stopped after success. The backing Actions Testbox step may show cancellation when Blacksmith stops the delegated session. An initial Testbox attempt stopped before testing because its synced checkout lacked dependencies; the retry used the documented frozen-lockfile bootstrap entirely on the remote VM.
Additional validation:
git diff --checkpassed after cleanup. Typecheck uses a scratch config extending the canonical UI E2E graph with this test as its sole include root.OPENCLAW_CATALOG_DASHBOARD_MS=90000passed all 24 rows in earlier proof (137.683 s case). An exploratory tiny positive duration hit the unchanged 120-second budget under load; no timeout was increased.b65e96ab3007against base87ba257f66d0: scoped-clean through P3, no actionable findings. Review inspected source only; no project code or browser tests executed.Final browser execution occurred only on Testbox after the production-host redirect. At publisher closeout PR CI was still running, with no failing checks reported. Exact-head CI 41315303135 has since succeeded, including the executed UI e2e shard checks-ui-e2e (1/2), whose log confirms this target passed all 24 rows.
Landing verification
The parent-reviewed head b65e96a merged as 99c1b1a at 2026-11-01T14:30:51Z after exact-head CI 41315303135 succeeded and normal native security and required-review gates qualified. Selector-skipped rows do not imply platform execution. Native COMPLETE receipt: bceccf75f4d9bcd487963413f727ace6adfc4ab0.
The landed tree matches replay of the approved patch on its actual parent. Test LF delta is 133 and effective-cap delta is 0; all current-main grants are preserved. The inherited slack delta is -133 under the parent-approved counting policy. No source edit, rebase or push was needed. All timing claims retain the measured bases and limitations stated above; the original source and runtime scopes still apply. No new CI timing claim is made.
Co-authored-by: steipete [email protected]
Work sessions