Skip to content

perf(ui): isolate cron rows from pending filter updates - #180965

Merged
steipete merged 4 commits into
mainfrom
solid2/w-perf-cron-rows
Oct 22, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/w-perf-cron-rows

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

With 500 loaded jobs, typing a Cron filter republishes aggregate view props. Each row control rebuilds menu presentation even when its job and authority facts are unchanged. Source profiles attribute residual work to Menu bindings, trigger attributes, and toggle labels after the lazy-menu fix.

Candidate: replace the aggregate JobsTable → JobRow prop spread with explicit job/action props. Three shared scalar memos retain unchanged capability, busy, and connection facts. The keyed job projection and actions continue reading current jobs, callbacks, and authority. No owner admission or request policy changes.

Before accepting: production renderer and synthetic Gateway, 500 jobs, desktop 1440×1000 and mobile 390×844. A held first cron.list response isolates per-keystroke rendering from variable request coalescing and result replacement. Require exactly one interval request, retained 500 rows, current full filter value, and busy table. At least 10 serial interleaved AB pairs; compare script/task/layout/style/automation wall median, p95, min and max. Any >20% regression rejects the candidate. Separately capture source-mapped traces and first menu opening, and preserve boot surfaces within 64 B variance. Report-only E2E probe only if accepted.

Paired measurements

80/80 outcomes pass; exactly one held cron.list per typing interval and zero menu RPCs. Chromium 156, macOS arm64, production renderer with synthetic Gateway, 10 serial AB pairs per viewport and step. No trace/profiler overhead. Every median, p95, minimum and maximum satisfies the 20% rule. Values are median / p95 / min–max ms.

Viewport / step / metric Base Candidate
desktop / cron-menu-open / scriptMs 11.68 / 14.74 / 10.75–14.74 11.40 / 12.51 / 10.02–12.51
desktop / cron-menu-open / taskMs 182.96 / 217.22 / 176.41–217.22 180.06 / 224.02 / 165.74–224.02
desktop / cron-menu-open / layoutMs 4.35 / 7.22 / 3.87–7.22 4.22 / 7.11 / 3.71–7.11
desktop / cron-menu-open / styleMs 90.98 / 95.46 / 89.51–95.46 90.23 / 93.34 / 88.52–93.34
desktop / cron-menu-open / wallMs 244.27 / 273.28 / 241.84–273.28 244.25 / 288.26 / 225.41–288.26
mobile / cron-menu-open / scriptMs 11.54 / 12.77 / 9.65–12.77 11.36 / 12.03 / 10.03–12.03
mobile / cron-menu-open / taskMs 152.78 / 156.94 / 149.15–156.94 150.41 / 153.43 / 145.95–153.43
mobile / cron-menu-open / layoutMs 4.89 / 5.26 / 4.65–5.26 4.73 / 5.17 / 4.52–5.17
mobile / cron-menu-open / styleMs 57.17 / 58.45 / 56.25–58.45 57.15 / 58.29 / 56.13–58.29
mobile / cron-menu-open / wallMs 210.68 / 212.82 / 206.34–212.82 211.86 / 212.60 / 208.59–212.60
desktop / cron-search-typing-pending / scriptMs 2379.93 / 2545.41 / 2338.44–2545.41 78.24 / 81.50 / 73.97–81.50
desktop / cron-search-typing-pending / taskMs 2682.55 / 2828.67 / 2630.78–2828.67 265.81 / 298.16 / 249.99–298.16
desktop / cron-search-typing-pending / layoutMs 15.80 / 16.49 / 15.22–16.49 15.14 / 15.95 / 14.35–15.95
desktop / cron-search-typing-pending / styleMs 1.34 / 1.53 / 1.25–1.53 1.39 / 1.51 / 0.99–1.51
desktop / cron-search-typing-pending / wallMs 2731.02 / 2872.49 / 2707.55–2872.49 305.95 / 339.14 / 289.30–339.14
mobile / cron-search-typing-pending / scriptMs 2517.55 / 2541.69 / 2493.18–2541.69 77.81 / 82.34 / 71.58–82.34
mobile / cron-search-typing-pending / taskMs 2785.12 / 2811.93 / 2755.27–2811.93 261.47 / 276.40 / 228.27–276.40
mobile / cron-search-typing-pending / layoutMs 15.94 / 16.43 / 15.66–16.43 15.18 / 15.82 / 14.34–15.82
mobile / cron-search-typing-pending / styleMs 1.48 / 1.54 / 1.38–1.54 1.73 / 1.79 / 1.52–1.79
mobile / cron-search-typing-pending / wallMs 2824.52 / 2873.83 / 2791.50–2873.83 297.95 / 321.12 / 274.73–321.12

Separate diagnostic traces show 20 → 0 long tasks for desktop typing and 20 → 0 on mobile; longest task 130.7 → 12.8 ms and 144.1 → 13.1 ms. Trace sampling overhead is included in those diagnostic values.

Evidence

The pairing held the first query W while typing Warm automation 0499: one RPC, 500 retained rows, current full input, and aria-busy=true. Both pairing bundles included the same first three spacing-selector changes, so those shared CSS changes are not counted as this PR's gain. Subsequent integration retained the same row patch; the current-main asset comparison below is separate.

Check Result
Changed row reactivity unit file 6/6 passed
UI types, changed-file lint/format, diff check Pass
Independent Codex review, P0–P2 No actionable findings
Same-machine production base/head build and strict check Pass
Startup JS gzip / requests 316,030 → 316,033 B; 7 → 7
Startup CSS gzip / requests 41,141 → 41,141 B; 1 → 1
Chat boot JS gzip 1,422,063 → 1,422,060 B
New Session JS gzip 963,275 → 963,288 B
Broad browser coverage ci:full; no local E2E suite

Production LOC: 640 → 662 (+22), replacing a broad prop spread with explicit action inputs. All changed files: 1,455 → 1,576 (+121), chiefly the report-only typing probe and one behavior regression. The row projection, current-job lookup, and domain request/mutation owners are retained. Solid audit: effects, untrack, manual listeners, DOM queries, owner APIs, flush, lifecycle and manual import counts are unchanged; three scalar property memos are added.

The existing Cron E2E probe types nine characters while the first request is held, then verifies the coalesced latest query and pagination. It reuses one CDP client and keeps the existing style-work assertion; timings have no threshold. Its automation-to-assertion time includes trace overhead and the explicit first-request synchronization, so it is not INP or individual-key latency.

Reproduction: scripts/bench-control-ui-interactions.ts --bundle-dir <base> --compare-bundle-dir <head> --steps cron-search-typing-pending,cron-menu-open --pairs 10. Add --trace for source-mapped diagnostic traces. Base/head production builds use pnpm ui:build; strict comparison uses scripts/check-control-ui-performance.mts --dist <head> --base-dist <base>.

Inspected synthetic before/after screenshots: #180965 (comment)

Production Knip fails with the same 13 unused-export groups and 11 exported-type groups on this head and exact merge base fdf6d47e645b118e5c3ee935f0a96a7bddd499da; outputs are byte-identical. No listed symbol is modified by this diff, and no ignore was added.

Measure desktop and mobile warm interactions with production bundles, synthetic fixtures, explicit trace intervals, and interleaved comparisons. Stop unchanged model search facts at row memos and defer hidden automation menu items through the existing lazy contract. Preserve report-only E2E probes and startup budgets.
# Conflicts:
#	scripts/lib/control-ui-interaction-scenarios.ts
#	ui/src/e2e/cron-search.e2e.test.ts
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T20:43:52.435021Z 46fb3f8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete

Copy link
Copy Markdown
Contributor Author

Synthetic before/after proof: the full filter value is entered while one request is held and all 500 rows remain. Desktop pair first, then mobile pair. Timings and request assertions are in the PR body.

desktop-cron-search-typing-pending-1-0

desktop-cron-search-typing-pending-1-1

mobile-cron-search-typing-pending-1-0

mobile-cron-search-typing-pending-1-1

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: M labels Oct 22, 2026
@steipete
steipete enabled auto-merge (squash) October 22, 2026 20:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR prevents pending automation-filter updates from needlessly rebuilding retained row controls.

Example: Type “Warm automation 0499” with 500 loaded jobs while the first filter request is held.

  • Before: Reported desktop median script work is 2,379.93 ms.
  • After: Reported desktop median script work is 78.24 ms, with the full input, 500 retained rows, and one pending request.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-preserving change with controlled production-renderer evidence, inspected visual pairs, and no actionable findings; exact-head CI is still completing.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The production browser renderer exercises the changed row boundary against a synthetic Gateway with 500 jobs on desktop and mobile; paired measurements isolate one held filter request, verify retained rows and current input, and separately exercise first-menu opening.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Typing a filter becomes sluggish when hundreds of automation rows remain visible during a pending request.
Reason: The maintainer-authored direction has strong measured value and preserves existing workflows without adding configuration or persistence.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a measured, focused rendering improvement that current main does not contain; no actionable defect was found.

Priority: P2
Reviewed head: 46fb3f812df59dd98ed8db48cd6031c9fb7a4dd5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Automations page projects Gateway-owned jobs into keyed Solid rows; filter input updates the existing request owner, while row controls dispatch through existing action handlers.

flowchart TD
  A[Filter input] --> B[Cron request owner]
  B --> C[Gateway job snapshots]
  C --> D[Keyed row projection]
  E[Scalar presentation memos] --> F[Row controls]
  D --> F
  F --> G[Existing action owner]
Loading

Technical review

Best possible solution:

Retain the explicit row inputs and scalar equality boundaries while preserving the existing projection and action owners.

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

The aggregate props path is present on current main, and the supplied controlled production-renderer comparison exercises its reported cost; no target code was executed during this review.

Is this the best way to solve the issue?

The change removes broad invalidation at the existing table-to-row boundary without introducing another state owner, debounce policy, or rendering path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 60c9291360c9.

Provenance checked

  • Cron row rendering and control props keeps the original intent (f49b7cd: The Solid port preserved automation workflows and consumed existing synchronous owners; later async work retained keyed presentation and plain-owner admission.)
  • Expanded-inventory browser coverage keeps the original intent (e715712: Protect loading-locality and retained-row styling during automation searches; the revised scenario retains that assertion and adds latest-query coalescing coverage.)
  • Interaction workload and first-menu behavior keeps the original intent (fdf6d47: Measure comparable warm interactions and preserve first-open lazy-menu behavior; the added held-request workload isolates rendering without replacing those scenarios.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +22, Tests +74, Other +25. Total +121 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 30 8 +22
Tests 2 147 73 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 25 0 +25
Total 6 202 81 +121

Review metrics

Metric Value Why it matters
Production versus test growth Production +22 lines; tests +74 lines Explicit row inputs explain the production growth; tests preserve live control updates and extend the existing pending-query browser scenario.

Labels

Label changes:

  • add P2: A substantial responsiveness improvement for expanded automation inventories, with limited scope and no demonstrated outage.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A substantial responsiveness improvement for expanded automation inventories, with limited scope and no demonstrated outage.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 4:59 PM ET / 20:59 UTC.

@steipete
steipete merged commit 7da1aa2 into main Oct 22, 2026
144 of 148 checks passed
@steipete
steipete deleted the solid2/w-perf-cron-rows branch October 22, 2026 21:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
)

* perf(ui): reduce warm model and automation interaction work

Measure desktop and mobile warm interactions with production bundles, synthetic fixtures, explicit trace intervals, and interleaved comparisons. Stop unchanged model search facts at row memos and defer hidden automation menu items through the existing lazy contract. Preserve report-only E2E probes and startup budgets.

* test(ui): open lazy cron menu before querying actions

* perf(ui): isolate retained cron rows from filter updates
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 ci:full Keep ordinary native-locale CI selection on the next PR run. 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. scripts Repository scripts 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