Skip to content

fix(cron): restore search typing performance - #190221

Merged
steipete merged 1 commit into
mainfrom
solid2/w-perf-cron-typing-regression-1101
Nov 1, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-perf-cron-typing-regression-1101

Conversation

@steipete

@steipete steipete commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Typing in Automations search repeatedly invalidates retained rows' owner-permission bindings. After #189749, the 500-job scenario rose from roughly 14 ms to 48 ms of desktop Chromium scripting.

User Impact

Restores responsive multi-keystroke search while preserving human-owner editing, transfer, live permission changes, and the existing mutation-time authority checks. Thanks @VACInc for the owner-management feature in #189749.

Why This Change Was Made

The permission callback was reached through the whole page's reactive props. Each search publication could re-enter the retained row controls, including speculative rendering that never became DOM mutations. The renderer now derives permission invalidation from actual Gateway/auth/identity and profile-directory changes, supplies those bindings separately, and suppresses equal per-row results. The permission policy stays with the existing owner; there is no new authorization cache or request-coalescing change.

Evidence

The committed cron-search-typing scenario loads 500 jobs, types Warm automation 0499 using pressSequentially, and waits for the final response and single matching row. This uses the production renderer and benchmark HTTP server with synthetic Gateway data; it makes no provider/network latency claim.

20 interleaved parent/fix/parent-control triples per viewport and engine: 240/240 passed. Parent is 4674051ce50a (975e68cf820^); its retained bundle's 6,274 file hashes were verified. Numbers are milliseconds, median / p95:

View / engine Metric Feature parent Fix Identical-parent control
desktop / chromium script CPU 13.805 / 16.458 13.753 / 14.757 13.981 / 17.543
desktop / webkit application time 106.000 / 115.000 106.500 / 119.000 108.500 / 115.000
mobile / chromium script CPU 10.869 / 11.605 11.299 / 12.592 11.078 / 12.982
mobile / webkit application time 94.000 / 104.000 94.000 / 102.000 95.000 / 105.000

Desktop script CPU matches the feature parent and its p95 improves 10.3%. Mobile script median is +3.95%; its p95 is +8.50%, while the identical-parent control is +11.87%. The loaded host also moved the mobile application-time control by +49.3%, so those wall-time tails are not evidence of a product regression. Host load: median 13.88, range 7.62–17.57. Against the original regressed measurements, script medians fall from 48.447→13.753 ms desktop and 22.505→11.299 ms mobile. The strict median target is met; mobile tail precision remains limited by the host. Pooling the 40 identical-parent references as a control check gives mobile script 11.007 / 12.802 ms versus 11.299 / 12.592 ms for the fix (+2.65% median, −1.64% p95). The primary per-slot comparison is preserved above.

  • pnpm tsgo:ui: passed.
  • The two changed test files, run with --maxWorkers=1: 9/9 passed. The retained-row work-count assertion was red before the row memo (four calls versus two); live owner/identity and admin transitions remain covered.
  • Focused formatting/lint and the controller guard: passed.
  • Production Knip: passed, no new ignores.
  • pnpm ui:build and strict bundle comparison: passed. Startup 90,452→90,450 B gzip, three JS requests and one CSS request unchanged; CSS stays 34,188 B gzip. Lazy boundaries stay intact.
  • Independent Codex review: no actionable P0–P2 findings. ci:full requests the broad UI, browser-extension and real-Gateway CI lanes.

Production LOC: 976→1,019 (+43) across the four changed production files. Test LOC: 294→335 (+41). The added derivation separates permission invalidation from search publications; it adds no subscription, effect, writable store, or lifecycle. Refactor census: memos 12→16, effects 1→1, onSettled 2→2; direct listeners, DOM queries, owner APIs, and flush calls remain zero.

Full timing table and rerun command
View / engine Metric Base median / p95 Head median / p95 A/A median / p95 Head delta % median / p95
desktop / chromium script 13.805 / 16.458 13.753 / 14.757 13.981 / 17.543 -0.37% / -10.34%
desktop / chromium task 37.759 / 43.391 36.986 / 40.350 37.469 / 51.447 -2.05% / -7.01%
desktop / chromium style 4.375 / 4.893 4.348 / 4.551 4.337 / 5.817 -0.63% / -6.99%
desktop / chromium layout 2.454 / 2.977 2.367 / 2.744 2.466 / 3.262 -3.53% / -7.83%
desktop / chromium application 42.350 / 44.500 42.750 / 44.200 42.500 / 61.600 +0.94% / -0.67%
desktop / chromium wall 95.564 / 96.943 95.555 / 96.922 95.722 / 139.065 -0.01% / -0.02%
desktop / webkit application 106.000 / 115.000 106.500 / 119.000 108.500 / 115.000 +0.47% / +3.48%
desktop / webkit wall 179.561 / 196.149 179.847 / 196.090 179.246 / 194.704 +0.16% / -0.03%
mobile / chromium script 10.869 / 11.605 11.299 / 12.592 11.078 / 12.982 +3.95% / +8.50%
mobile / chromium task 29.681 / 32.529 31.002 / 35.321 30.756 / 34.553 +4.45% / +8.58%
mobile / chromium style 2.617 / 2.774 2.607 / 2.970 2.664 / 3.134 -0.36% / +7.07%
mobile / chromium layout 2.042 / 2.280 2.085 / 2.435 2.103 / 2.563 +2.11% / +6.80%
mobile / chromium application 27.400 / 42.400 41.600 / 43.500 40.900 / 43.200 +51.82% / +2.59%
mobile / chromium wall 80.582 / 95.299 94.113 / 96.926 94.345 / 96.578 +16.79% / +1.71%
mobile / webkit application 94.000 / 104.000 94.000 / 102.000 95.000 / 105.000 +0.00% / -1.92%
mobile / webkit wall 147.927 / 178.489 148.124 / 164.787 147.455 / 163.392 +0.13% / -7.68%
NODE_DISABLE_COMPILE_CACHE=1 node --import ./scripts/tsx.mjs scripts/bench-control-ui-engines.ts \
  --bundle-dir "$PARENT_BUNDLE" --compare-bundle-dir dist/control-ui \
  --control-bundle-dir "$PARENT_BUNDLE" --engines chromium,webkit \
  --viewport both --steps cron-search-typing --pairs 20 \
  --output .artifacts/cron-typing/confirmation

Profiler captures are attribution only: enabling V8 sampling suppressed much of the original regression, so all reported acceptance timings are unprofiled.

Synthetic desktop captures retain the same layout and controls.

Before

Automations search before the performance fix

After

Automations search after the performance fix

CI attribution and landing

Full CI run 41295724373, attempt 1, tested 66a619d0b53c merged with b60801599640. Two failing E2E shards contain five inherited cases; the other selected checks, including security, passed.

  • Empty workspace: starts an empty cloud workspace before the default folder Git check finishes fails the same line-54 assertion in scheduled main run 41293098118: expected “Start in an empty folder for this session.”, received “New workspace”. Shard numbering changed; the case and assertion match.
  • Presentation primitives: all four Solid preserves presentation contracts in {light,dark} {desktop,mobile} cases reproduce on the actual CI parent b60801599640 in a single-file headless run (pnpm test ui/src/e2e/presentation-primitives.e2e.test.ts --maxWorkers=1). They fail the same skeleton shadow-parent style assertion at lines 175/270. Main's shimmer consolidation improve(ui): use one shimmer across the Control UI #189848 moved skeleton background, radius and overflow into document-global CSS. The older branch base passes; the actual CI parent fails. These inputs are unchanged by this PR.

Landing uses the authorized native inherited-failure route with hashed logs and the actual CI merge. No failing assertions are skipped or weakened.

Isolate presented permissions from aggregate search state while retaining live owner, identity, and access updates. Keep mutation-time authority checks unchanged.

Related: #189749. Chromium desktop script CPU returns to the feature-parent baseline; mobile median is within 4%, with a noisy identical-parent tail. Preserve owner-management and transfer behavior.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T10:04:56.570378Z 66a619d 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
steipete enabled auto-merge (squash) November 1, 2026 10:10
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 1, 2026
@steipete
steipete disabled auto-merge November 1, 2026 10:22
@steipete
steipete merged commit 0f548ca into main Nov 1, 2026
119 of 128 checks passed
@steipete
steipete deleted the solid2/w-perf-cron-typing-regression-1101 branch November 1, 2026 10:26
@steipete

steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
Isolate presented permissions from aggregate search state while retaining live owner, identity, and access updates. Keep mutation-time authority checks unchanged.

Related: openclaw#189749. Chromium desktop script CPU returns to the feature-parent baseline; mobile median is within 4%, with a noisy identical-parent tail. Preserve owner-management and transfer behavior.
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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant