Repository navigation
perf(ui): isolate cron rows from pending filter updates - #180965
Conversation
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
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +22, Tests +74, Other +25. Total +121 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 22, 2026, 4:59 PM ET / 20:59 UTC. |
|
Merged via squash auto-merge.
|
) * 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




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.
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
Wwhile typingWarm automation 0499: one RPC, 500 retained rows, current full input, andaria-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.ci:full; no local E2E suiteProduction 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--tracefor source-mapped diagnostic traces. Base/head production builds usepnpm ui:build; strict comparison usesscripts/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.