Repository navigation
fix(cron): restore search typing performance - #190221
Merged
Merged
Conversation
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.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Contributor
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. |
steipete
enabled auto-merge (squash)
November 1, 2026 10:10
steipete
disabled auto-merge
November 1, 2026 10:22
Contributor
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
This was referenced Nov 1, 2026
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.
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.
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-typingscenario loads 500 jobs, typesWarm automation 0499usingpressSequentially, 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: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.--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.pnpm ui:buildand 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.ci:fullrequests 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
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
After
CI attribution and landing
Full CI run 41295724373, attempt 1, tested
66a619d0b53cmerged withb60801599640. Two failing E2E shards contain five inherited cases; the other selected checks, including security, passed.starts an empty cloud workspace before the default folder Git check finishesfails 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.Solid preserves presentation contracts in {light,dark} {desktop,mobile}cases reproduce on the actual CI parentb60801599640in 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.