Skip to content

improve(ui): speed up searches in expanded automation lists - #159901

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/latency-ux-cron
Sep 27, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/latency-ux-cron

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #159806

What Problem This Solves

The first search after expanding an Automations list spends unnecessary time restyling every retained icon while results load.

User Impact

Searching an expanded automation inventory does less main-thread work without changing its layout, content, controls, accessibility, focus, or pagination. No new caching, debounce, or row limit.

Why This Change Was Made

Two loading rules restyle unrelated SVGs whenever a region changes aria-busy. The video and New Session owners now expose equivalent styling classes; CSS declarations, specificity, and accessible busy attributes remain unchanged.

Main merged the overlapping people-menu correction during validation. This PR was rebased on da2bcd699bc11789ef35b43f61b2e27dc0c03861, keeps that canonical fix unchanged, and contains only the remaining SVG-loading correction plus its regression and focused test consolidation. The measurements and video below were refreshed against that newer main.

Reported and requested by @vyctorbrzezowski.

Work sessions

Evidence

Actual Control UI, canonical synthetic mock Gateway, production bundles from the rebased main and candidate. Three interleaved passes per condition; 1440×900, Chromium, dark theme, reduced motion, no CPU throttling. Requests were held to separate retained-list loading from response replacement.

Loaded jobs Loading: input → first frame, median before → after
10 3.7 → 3.1 ms (small-case noise)
50 15.4 → 11.5 ms
250 23.6 → 16.8 ms

At 250 jobs, the loading commit recalculates style for 1,020 → 20 elements. Response-driven replacement remains essentially unchanged: 34.2 → 32.5 ms, with overlapping ranges. No ≥50 ms task occurred in either final confirmation window. These callbacks are not exact paint, INP, or a device SLA. The 14-second normal-speed video shows the actual unchanged UI; its captions identify the separately measured loading phase.

  • The bundled real-flow regression fails on rebased-main production code (319 restyled elements versus 100 retained rows), then passes with the correction. A cold source-only route omits the cross-page CSS and was explicitly rejected as the test boundary. The retained regression preserves busy feedback, query/focus, page-zero replacement and the next page cursor; it asserts work count, not machine speed.
  • 326 focused tests pass on the rebased candidate across the Cron view/loader, session/header menus, video lifecycle and New Session composer/attachment reads (7.92 s wrapper).
  • 29 browser E2E tests pass on the final candidate in four files on an isolated Blacksmith Testbox (48.02 s): the bundled regression, Cron loading/error/save/navigation/hidden-refresh flows, chat history recovery, and New Session prompt/attachment reads. A missing recorder binary was installed only on the owned lease before the full passing replay. The lease is stopped.
  • Refreshed candidate lifecycle checks pass: 390↔1440 resize, row-menu Escape/focus return, browser composition events, retained rows on search error, reconnect and warm navigation. This is not OS-level IME certification.
  • Final independent AutoReview found no actionable P0–P2 issue, including the CI correction below. Both the full production-diff gate and the subsequent changed-test gate pass. Exact-head GitHub CI remains the landing gate.
  • CI exposed a conflicting mixed-history fixture: a background chat.history read for Session B received Session A’s placeholder, while chat.startup returned B’s 70 messages. This also reproduced with main’s production files. In a paired 79-file shard, the original fixture failed and the consistent per-session fixture passed with identical assertions. The correction uses the existing canonical transcript map for both reads—no production scroll change, wait, retry, or relaxed assertion. The final two-file replay passes all 7 tests (27.92 s; repaired history case 1.389 s), including the Cron performance regression.
  • Test audit removes 26 net lines from existing tests while preserving their accessibility, selection, visibility, and scrolling assertions. One bundled real-flow regression owns the performance contract; no production test seam. Production: 4 files, +13/−14 lines. Tests: +135/−38 lines.

No live account data or Gateway configuration was used. No deployment. Landing is requested through the normal CI and review gates.

cron-search-current-main.mp4

Before: Automations search on main da2bcd699bc with synthetic data

After: rebased SVG-loading correction with unchanged controls

@clawsweeper

clawsweeper Bot commented Sep 27, 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 P2 Normal backlog priority with limited blast radius. 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 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 7:06 PM ET / 23:06 UTC (Revision 4).

ClawSweeper review

What this changes

The branch scopes video and New Session loading styles to component-set classes, adds a bundled-browser Automations search regression, and makes a chat-history test fixture consistent across reads.

Merge readiness

⛔ Blocked before merge - 2 items remain

Current main still has the broad loading selectors, so this PR remains useful beyond the related merged work. Source review found no blocking patch defect; the contributor and prior review reserve landing for Vyctor’s human review.

Priority: P2
Reviewed head: 64b7fcf09b922d83a709586b0fab3d22f0f7a11c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Matched browser measurements, inspected visual evidence, and a baseline-failing bundled regression support a small, coherent patch.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Production-bundle Control UI runs in Chromium with a synthetic Gateway exercised search while an expanded list remained visible; the PR reports a 23.6→16.8 ms loading median and 1,020→20 recalculated elements at 250 jobs, and inspected screenshots show visual parity. The linked video was unavailable to this reviewer because ffprobe was absent and browser retrieval missed; no stored-data contract changed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Production-bundle Control UI runs in Chromium with a synthetic Gateway exercised search while an expanded list remained visible; the PR reports a 23.6→16.8 ms loading median and 1,020→20 recalculated elements at 250 jobs, and inspected screenshots show visual parity. The linked video was unavailable to this reviewer because ffprobe was absent and browser retrieval missed; no stored-data contract changed.
Evidence reviewed 11 items Current main still needs the optimization: Fetched main retains the video loading selector keyed to aria-busy; the branch changes this styling hook.
Second broad selector remains on main: Fetched main also styles the New Session submit SVG through aria-busy.
Introduced loading-state change: The video class and aria-busy derive from the same loading value; the replacement CSS keeps the prior selector specificity.
Findings None None.
Security None None.

How this fits together

The Control UI sends Automations search requests to the Gateway while keeping existing rows visible during loading. Shared styles determine which elements the browser recalculates when that list becomes busy.

flowchart LR
A[Search input] --> B[Automation list request]
B --> C[Busy retained table]
C --> D[Shared UI styles]
E[Video and composer loading] --> F[Local loading classes]
F --> D
D --> G[Browser frame]
Loading

Decision needed

Question Recommendation
Does Vyctor approve landing the cross-page loading-style change with the measured Automations benefit and preserved video and New Session loading states? Approve the scoped change: Confirm loading-state parity and allow the PR to proceed through its normal exact-head merge gates.

Why: The contributor requested Vyctor’s human review, and the prior completed review retained that hold; source and browser evidence cannot grant that sign-off.

Before merge

  • Complete next step (P2) - Obtain Vyctor’s requested human review before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source -1, Tests +97. Total +96 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 13 14 -1
Tests 3 135 38 +97
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 148 52 +96

Review metrics

Metric Value Why it matters
Loading style recalculation 1,020 → 20 elements at 250 jobs The reported production-bundle comparison measures the specific browser work this PR targets.
Search loading median 23.6 → 16.8 ms at 250 jobs The reported interleaved browser runs show a bounded improvement without a claimed device-wide latency guarantee.

Technical review

Best possible solution:

Keep component loading classes as styling hooks and aria-busy as the accessibility signal, with the bundled-CSS regression guarding searches of retained automation lists.

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

Yes. The bundled-browser regression exercises a retained 100-row list during a deferred search, and the PR reports that it fails against main’s production files; this reviewer did not rerun it.

Is this the best way to solve the issue?

Yes. The component-owned classes preserve the existing busy semantics and CSS specificity while removing the broad selectors responsible for unrelated restyling.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b5b8a3318a2f.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Expanded Automations searches perform avoidable browser work, with a measured but limited responsiveness impact.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Production-bundle Control UI runs in Chromium with a synthetic Gateway exercised search while an expanded list remained visible; the PR reports a 23.6→16.8 ms loading median and 1,020→20 recalculated elements at 250 jobs, and inspected screenshots show visual parity. The linked video was unavailable to this reviewer because ffprobe was absent and browser retrieval missed; no stored-data contract changed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Production-bundle Control UI runs in Chromium with a synthetic Gateway exercised search while an expanded list remained visible; the PR reports a 23.6→16.8 ms loading median and 1,020→20 recalculated elements at 250 jobs, and inspected screenshots show visual parity. The linked video was unavailable to this reviewer because ffprobe was absent and browser retrieval missed; no stored-data contract changed.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: 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 (3 earlier review cycles)
  • reviewed 2026-09-27T21:34:23.274Z sha b270fa83187136c926d811a6eff847f2e20eb84f :: blocked before merge. :: none
  • reviewed 2026-09-27T22:08:58.564Z sha 560eb3b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-27T22:15:56.247Z sha 560eb3b :: needs changes before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the openclaw/latency-ux-cron branch from b270fa8 to f1f3211 Compare September 27, 2026 21:41
@roboclaw-bot roboclaw-bot changed the title fix(ui): keep expanded automation searches responsive improve(ui): speed up searches in expanded automation lists Sep 27, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 27, 2026 21:46
Keep video and New Session loading paint on equivalent owner-authored classes so marking the retained Cron inventory busy does not restyle unrelated SVGs. Preserve appearance, ARIA state, pagination and actions. Retain the people-menu fix already merged in 23e8398 unchanged.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/latency-ux-cron branch from f1f3211 to 560eb3b Compare September 27, 2026 22:02
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Review only; do not autofix, merge, or enable auto-merge. Final candidate: 560eb3b4be179ce48ea60eb736211e2de9e8b4d3. The three blockers in the old b270 review are resolved: rebased on da2bcd6, preserved main’s already-merged #159806 people-menu pair unchanged, and refreshed matched production-bundle timing/video for only the remaining SVG-loading change (250 jobs: 23.6→16.8ms loading, 1020→20 restyled elements; replacement essentially unchanged).

The performance regression now lives at the bundled CSS boundary: it fails with current-main production files at319 restyled elements for100 retained rows, passes with the candidate. Source-only cold-route coverage was rejected because it does not load the cross-page styles. All29 focused E2E tests pass on the final candidate, plus326 focused tests and a clean final independent AutoReview. Updated evidence and inspected video/screenshots are in the PR body. Keep unmerged for Vyctor’s human review.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 27, 2026
Give the mixed-history E2E one canonical transcript per session for both background history and foreground startup. Preserve every visibility and scrolling assertion while removing contradictory mock responses.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The earlier keep-open hold is superseded: Vyctor (@vyctorbrzezowski) has now explicitly authorized fixing CI and landing this PR in the implementation and verification session. I am carrying out that direct request through the native guarded landing workflow, not inferring approval from test results or a bot score. Loading-state parity is preserved and documented in the existing source, browser proof, and focused tests.

Exact head: 64b7fcf09b922d83a709586b0fab3d22f0f7a11c. Current-head CI is successful. The prior history failure is repaired by one canonical transcript per session for prefetch and startup, with no weakened assertions, waits, or retries. No source changes since the latest code review.

Review-only refresh to retire the obsolete hold; do not start a separate autofix or merge actor.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot merged commit e715712 into main Sep 27, 2026
115 of 117 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/latency-ux-cron branch September 27, 2026 23:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…#159901)

Keep loading paint scoped to its video and New Session owners so searching an expanded Automations list does less unrelated style work, without changing appearance, accessible busy states, content, focus, or pagination.

Use one canonical transcript per session for background history and startup in the mixed-history regression, retaining every visibility and scrolling assertion.

Co-authored-by: vyctorbrzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant