Repository navigation
improve: reduce chat CPU work during reconnects - #184386
Conversation
Keep current mutation guards while retaining model choices across unrelated frame updates. Preserve in-place session facts and locale invalidation. Add a reproducible reconnect matrix with separate update prompt and reload intervals.
Derive the selected model summary without expanding every option family. Let the retained picker panel request the full options on first open while preserving Default, runtime and context-budget semantics.
Compare the model, runtime, speed and availability fields before rescanning the catalog. Keep locale invalidation and live outer mutation guards. Narrow helper input types to the facts it reads.
Reject lazy option expansion after 20 interleaved mobile first-open pairs increased script CPU by 8.5 percent with a flat control. Keep the narrower selection and Fast-mode derivations and stable saved-model snapshot; restore the original picker API and eager option preparation.
|
🦞👀 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: blocked before merge. What this changesThis PR retains model-control derivations across unrelated chat updates and adds reconnect and picker performance diagnostics. Example: Reconnect a ten-pane chat with 1,000 sessions and 100 ms simulated RTT after a same-build restart.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain This PR provides a useful, maintainer-directed CPU optimization with no definite functional defect found; performance acceptance and failed CI still need resolution. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherControl UI model controls consume catalog, session, runtime, and permission facts to render model and effort choices; existing session and Gateway owners continue to admit mutations. flowchart LR
A[Gateway catalog and session owners] --> B[Chat presentation props]
B --> C[Retained model derivations]
B --> D[Live mutation guards]
C --> E[Model and effort controls]
D --> E
E --> F[Existing session mutation owner]
Technical reviewBest possible solution: Keep the existing component-owned derivations and ship the measured CPU savings after settling latency acceptance and attributing the failed CI checks. Do we have a high-confidence way to reproduce the issue? Fetched main derives selection and speed from broadly changing presentation frames; the supplied production-renderer comparisons demonstrate avoidable work, although I did not execute a current-main reproduction. Is this the best way to solve the issue? Narrow equality boundaries within the existing controls address the measured waste while preserving live policy and mutation guards; the smallest complete fix needs no new authoritative state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7aee7016f08c. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +181, Tests +135, Docs +67, Other +1223. Total +1606 across 19 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 26, 2026, 4:37 AM ET / 08:37 UTC. |
…184383) Warm reloads restored the composer's model control from the cached composer snapshot but rendered effort, fast mode and permission from live data only. Those controls changed once after first content on every reload. The existing composer snapshot now also carries display facts for the reasoning/thinking level and profile (capped list), fast-mode presentation, and permission mode with its agent default. Until the selected session is live and its accepted history matches, the composer renders those cached facts with final geometry. The permission control stays disabled while it shows cached state, live owners supersede the snapshot once ready, and actions remain live-authorized. Evidence, 11 interleaved pairs per route on AWS c7a.4xlarge: composer transitions after first content 1 -> 0 in 11/11 pairs on both chat and dashboard; no secondary regression under the campaign rule; snapshot +235 bytes (+0.49%). Full UI e2e: 842 files passed, 1 inherited filesystem failure. The three checks-ui (1/3) CI failures sit outside this diff and passed in matched shard replays of both main and this head (two replays), so they are classified as load-sensitive flakes. Runtime +104 LOC.
|
Merged via squash.
|
* perf(ui): isolate chat model selection derivation Keep current mutation guards while retaining model choices across unrelated frame updates. Preserve in-place session facts and locale invalidation. Add a reproducible reconnect matrix with separate update prompt and reload intervals. * perf(ui): defer unopened model picker options Derive the selected model summary without expanding every option family. Let the retained picker panel request the full options on first open while preserving Default, runtime and context-budget semantics. * perf(ui): retain fast-mode derivation across unrelated frames Compare the model, runtime, speed and availability fields before rescanning the catalog. Keep locale invalidation and live outer mutation guards. Narrow helper input types to the facts it reads. * test(ui): cover reconnect picker and HTTP latency costs * perf(ui): retain saved model presentation across reconnect frames * fix(ui): preserve reconnect profiling across refresh * refactor(ui): separate shared model control types * perf(ui): retain eager model options after mobile measurements Reject lazy option expansion after 20 interleaved mobile first-open pairs increased script CPU by 8.5 percent with a flat control. Keep the narrower selection and Fast-mode derivations and stable saved-model snapshot; restore the original picker API and eager option preparation. * test(ui): add diagnostic interaction function counts * perf(ui): limit model search to searchable presentation facts * test(ui): collect function coverage before browser warmup * perf(ui): narrow model selection and catalog search inputs * test(ui): record first-open input phases * test(ui): preserve input cadence in picker diagnostics * test(ui): align model fixture types and benchmark formatting * test(ui): await lazy transcript group before label assertion * test(ui): reopen publication menu after request admission * test(ui): await queued patch admission without polling * test(ui): settle lazy sharing content before assertions * perf(control-ui): restore composer controls from the cached snapshot (openclaw#184383) Warm reloads restored the composer's model control from the cached composer snapshot but rendered effort, fast mode and permission from live data only. Those controls changed once after first content on every reload. The existing composer snapshot now also carries display facts for the reasoning/thinking level and profile (capped list), fast-mode presentation, and permission mode with its agent default. Until the selected session is live and its accepted history matches, the composer renders those cached facts with final geometry. The permission control stays disabled while it shows cached state, live owners supersede the snapshot once ready, and actions remain live-authorized. Evidence, 11 interleaved pairs per route on AWS c7a.4xlarge: composer transitions after first content 1 -> 0 in 11/11 pairs on both chat and dashboard; no secondary regression under the campaign rule; snapshot +235 bytes (+0.49%). Full UI e2e: 842 files passed, 1 inherited filesystem failure. The three checks-ui (1/3) CI failures sit outside this diff and passed in matched shard replays of both main and this head (two replays), so they are classified as load-sensitive flakes. Runtime +104 LOC.
Round 2 status — coordinator accepted
Current head:
ba9b3cf9420, merged with main0261812512aafter the cached composer-control presentation change (#184383) caused a real conflict. The one-line transcript readiness correction is committed, and the main test-fixture conflict was resolved by merging main. Direct-route Codex review of the integrated candidate is scoped-clean at P0–P2. A later one-line publication-test correction also received a fresh scoped-clean review.Twenty untraced base/control/head triplets repeated the exact immutable production bundles for the remote one-pane brief drop, with 1,000 sessions/models, 500 automations and 100 ms RPC/HTTP delays. All 60 passed:
No Long Tasks entry occurred in that untraced cohort. A separate 60-sample one-pane trace cohort also passed, with no task above 47 ms. A third, mixed one-/ten-pane trace cohort passed 120/120; its timings are diagnostic, never pooled with untraced acceptance. One-pane wall median/p95: base 464.85/490.90, control 470.55/506.50, head 460.70/500.70 ms. Its head script median improved 6.98%, but script p95 increased 10.59%; this is disclosed, not called a uniformly clean timing win.
The historical 664 ms task was predominantly off-CPU: the complete interval contains only 217.093 ms of renderer task CPU, so at least 446.907 ms was outside renderer-thread execution. Its synchronous stall falls between
users.listandsessions.describe, the same stage as the original A/A outlier. No trace exists for that original sample, so this does not distinguish descheduling from a native wait or establish an exact source owner. The historical 59% wall-p95 result remains disclosed. It did not reproduce in 240 new observations, and the coordinator accepted the off-CPU share and non-reproduction as sufficient evidence of a host/scheduling residual; it is no longer a landing blocker.All 120 mixed profiles were source-mapped (309,211 frames mapped, 1,018 unmapped). Largest native tasks, wall/thread CPU: one pane base 47.288/46.848 ms, control 43.874/43.258 ms, head 58.856/50.798 ms; ten panes base 121.927/121.109 ms, control 126.779/122.981 ms, head 140.906/137.626 ms. Details geometry is the dominant mapped owner for the ten-pane tasks. Screenshots show wide stacked panes with Details open/docked, so a closed-only optimization would miss this cost. The requested architectural follow-up is prepared around the existing layout read/write scheduler but has not been implemented, honoring the coordinator's after-landing ordering.
Full CI
40343803289failed one named test:session pull request chips > drops a deferred publication result after switching to another publishing session. The latest completed scheduled main40337335014passed the matching UI shard; this is not treated as inherited. Publication admission moves the inline action into the branch menu, which may close during the click handoff. The test now reopens the menu before checking B's pending action, matching the neighboring test's existing contract. Both stale-A and disabled-B assertions remain. The corrected single test passed (1 passed, 9 unselected, 18.55 s); Node was used because this is Playwright E2E. One initial artifact-mode invocation selected no files and is not counted as proof. The new push requests full CI again.The initial build/review comparison used pinned ancestor
9ce791ad051. A fresh exact merge-base build at35bcb70f487now confirms the same asset values with strict checks (no warnings/violations). Production head bytes are from8104b632ba8, unchanged by the E2E-onlycf3e11fec1fcorrection. The earlier review included the intervening main delta. Production UI LOC: 3,860 → 4,041 (+181). All 22 changed files: 11,275 → 12,889 (+1,614), mostly the benchmark/proof harness. No production code changed in the two round-2 test corrections. No active Testbox lease; the queued request was cancelled before any payload ran.Round 3 CI repair
Run 40348263473 completed with two failed test names. Both corresponding jobs passed on latest completed scheduled main 40337335014; neither is classified inherited.
handleSendChat > retires a failed queued picker back to the preceding confirmed session rowtimed out on the one-second wait for its first patch to start. The test now awaits the admitted request event itself, preserving the held first request, second-request rejection, ordering and rollback assertions. The full file passes 108/108; corrected scoped lint, formatting, UI typecheck and independent P0–P2 review pass.Daybreak through a real built Gateway > persists visible selections and refreshes queued requests on desktop and mobilereceiveddaybreak_bluewhile waiting forstandardin the held-response case. The exact case passed unchanged with a fresh isolated runtime and matching UI build (1 selected pass, 2 unselected, 107.65 s Vitest). The failure did not reproduce; no production repair or inherited-failure claim is made. The new full CI run is required.Commit
de14ed6200echanged only the test wait. Main subsequently supplied the canonical repair in #184744, moving the regression intochat-settings-patches.test.tsand waiting for dispatch. Mergea19952a9ae6keeps that owner test and removes this branch’s duplicate; the moved test passes (1/1). No new production change was authored in the merge. The pushed merge resolves GitHub’s conflict, which had prevented CI from attaching to de14.Current integrated asset proof (exact base
91fa755ffd6vs heada19952a9ae6): startup 271,105 → 271,341 B gzip (+236 B), chat 1,237,917 → 1,238,637 B (+720 B). Startup 5 JS / 1 CSS and chat 20 JS / 3 CSS requests are unchanged; strict checks pass without warnings or budget changes. Canonical production Knip exits 1 on both with byte-identical 105-byte output: one unuseddeferSqliteWorkerNativeCommitReceiptexport in the unchanged SQLite owner. Full CI 40355643358 ona19952a9ae6exposed the sharing test failure below. Current LOC: production 3,860 → 4,041 (+181), all 23 changed files 11,982 → 13,597 (+1,615).What Problem This Solves
Chat model controls repeat large catalog and selection derivations when reconnect and history updates replace otherwise unchanged session data.
User Impact
Reduces renderer CPU during heavier reconnects and when reopening the model picker. In the large-catalog workload (1,000 sessions, 1,000 models, 500 automations and ten panes), reconnect script CPU medians improve 8.19–16.39% across brief drops, simulated sleep and same-build restarts on localhost and 100 ms RTT.
This is a CPU improvement, not a uniform latency improvement. The original pooled one-pane 100 ms brief-drop wall p95 worsened from 602.2 to 958.5 ms; the 20-triplet repeat improved 482.3 to 473.5 ms. The coordinator accepted the historical off-CPU outlier and non-reproduction as the residual described above. Neither the −40% recovery target nor the 100 ms maximum-task goal was reached.
Why This Change Was Made
Keep prepared model catalogs, selection facts, Fast-mode derivation and saved-model presentation stable across unrelated chat frames. Prepare searchable facts for hidden model rows and read shared search props once per catalog. Context-window controls independently read the current session/default owner, so retaining model choices cannot freeze them.
The existing Gateway/session owners retain request admission, ordering, offline queue and write authority. No production effect, listener, cache owner, dependency or configuration option is added. The type-only module is erased; the presentation helper moves the existing catalog index.
Evidence
The committed
scripts/bench-control-ui-reconnect.tsruns four scenarios × two network profiles × one/ten panes with 1,000 sessions, 1,000 models and 500 automations. Each cell uses 20 serial, alternating-order base/control/head triplets: 960/960 behavior samples passed. Local load-1 median/range was 54.01 / 20.95–91.44; 100 ms profile was 39.50 / 20.56–69.83. A queued Testbox probe was cancelled before receiving a host; all measurements ran on the same Mac.Acceptance uses the campaign's noisy-host rule: A/A control plus renderer thread CPU and work counts, with raw timings retained. Independent review found no demonstrated systematic attributable CPU regression. Small mixed cells remain disclosed: local one-pane update script p95 +5.53% (46.637→49.217 ms, A/A 48.267 ms), median −0.37%, task p95 +0.25%; remote update script medians +2.95%/+3.12% for one/ten panes.
The remote one-pane brief-drop wall p95 is +59.80%; A/A is only +4.18%, so the control does not explain that severe tail. Its longest overlapping task is 664 ms. The full 664 ms task is post-restoration: it starts 121.3 ms after the first retained reconnect RPC, around initial-history delivery. A second 480 ms outlier starts 117.5 ms after that RPC. All six base/control/head samples in those pairs have identical request counts and 248,592 delivered bytes. The 664 ms sample has script/total thread CPU 152.785/217.093 ms versus paired base 150.628/218.940 ms; the 480 ms sample has lower CPU than its base. No tail stack trace or per-task CPU breakdown was captured. Interval CPU does not explain or dismiss the wall-time regression, and the changed derivation can run during history hydration. That original cohort did not establish a scheduling cause; the later non-reproduction and off-CPU evidence above is the basis of the accepted residual. A predeclared ten-triplet extension for remote one-pane brief-drop passed 30/30 behavior samples. The primary pooled 30-triplet result retains every original sample: wall median 478.95→468.95 ms (−2.09%), p95 602.2→958.5 ms (+59.17%), A/A p95 +3.77%; script CPU median −5.26%, p95 −5.99%; task CPU median −4.47%, p95 −7.62%; request/byte medians and p95 unchanged. One original head sample (pair 6, the wall-p95 sample) starts an extra undelivered
sessions.listrequest: 35 starts versus 34, while both deliver 31 replies / 248,592 bytes. An extension A/A sample finishes with less background work (34 starts, 29 deliveries / 198,862 bytes and two session rows); every readiness witness still passes. These exceptions prevent a per-sample identical-work claim. The extension alone observed no ≥50 ms task and wall p95 602.2→466.5 ms, but it does not erase the original tails. The earlier CPU-only acceptance was withdrawn for round-2 investigation. Following 240 new observations, the coordinator lifted that hold and accepted the historical off-CPU stall as a host/scheduling residual. The original timing and counter evidence remains retained; no exact source attribution is claimed. A separate instrumented triplet passed 3/3 behavior checks and is excluded from timing statistics. It reproduced no ≥50 ms task (largest task: base 46.781 ms, A/A 42.935 ms, head 25.252 ms); source mapping covered over 99% of sampled frames. This cannot explain the original tails. Reconnect maximum is 118 ms locally and 664 ms at 100 ms RTT; update-reload maximum is 200/448 ms. The local one-pane reload p95 is +21.77% (A/A +24.99%); remote ten-pane reload p95 is +8.94% (A/A +68.16%).Retained-picker correctness passed 6/6 additional samples across both network profiles: the same menu node reopened after sleep, with zero session patches or message sends. A separate first-open coverage diagnostic passed 2/2 behavior checks: full model-row presentation and context metadata calls 1,043→43; reactive own-key enumeration 1,001→1, descriptor reads 28,033→33 and readonly getters 31,784→3,782. Search rows remain 1,000 and store getters 118,906. Instrumented durations are not timing evidence.
Focused proof: 60 model-selection/preference/picker tests passed; UI and script typechecks, scoped lint/format, production build and strict asset checks passed. The complete canonical production Knip scan exits 1 on both clean base
766fae46a165and final headde52f76248d, with byte-identical output (1,272 bytes): 12 unused-export rows and four unused-exported-type rows. The earlier files/dependencies-only scan was not full-export proof; this comparison supersedes it. No new finding; those baseline findings remain unresolved by this focused change. Source and diagnostic reviews have no remaining actionable P0–P2 findings. The firstci:fullrun completed with formatter and test-type failures. Those two issues are repaired: the exact core UI test-type leaf and scoped formatter check pass, and independent P0–P2 review is clean. Replacementci:fullrun 40294410215 exposed three additional failures. The final branch incorporates main's wait-clock repair (#184457) and canonical selected-Gateway runtime preparation (#184458). Those owners supersede the proposed local clock and three-file test-routing changes; none of those four changes remain in this PR. The only retained CI repair explicitly settles the sidebar's cold Pages import while preserving all existing DOM assertions and the one-second polling budget. Its independent P0–P2 review is clean; the intermittent timeout was not reproduced deterministically, and the available CI summary does not identify which sidebar assertion timed out.The exact sidebar case, UI typecheck, production build and strict base/head asset check pass on final head
de52f76248d. The original core UI test-type leaf proof is retained. Full PR CI 40314404359, tested as synthetic mergec92e19ee224ainto main02e6a799b59a, finished with two failures under investigation: a live transcript activity assertion and the real-Gateway queued program-selection clearing assertion. Neither is classified as inherited; the transcript case passed exact-base replay and the latest completed scheduled main run. The real-Gateway fixture changed on newer main. Its complete three-case sequence now passes on the exact synthetic CI merge after canonical matching runtime/UI preparation (375.11 s wrapper wall time; 342.09 s Vitest duration), including desktop/mobile queued clearing. The original failure remains unresolved; no selection-owner fix or inherited-failure claim is made. A separate bounded diagnostic reproduced the transcript assertion by holding its real lazy renderer after positioning settled. A one-line readiness correction passes all 14 tests (40.97 s), format and lint, and was subsequently committed with clean independent review. These initial failures are not classified as inherited. Passing files in the failed run include transport/auth, history admission/recovery, outbox/queue ownership, offline send/Stop, queue reorder/update, offline attachment recovery, split-pane reconnect, and real-Gateway catalog reconnect ordering; the failed shards are not reported green.Sizes above compare fresh clean main
766fae46a165with final headde52f76248don the same machine. Both strict checks pass without warnings or violations. The +307 B startup delta accompanies the measured 8.19–16.39% ten-pane reconnect CPU win and stays within the existing 271,650 B baseline plus its 512 B allowance; no budget was changed. Startup raw bytes are identical. Timings retain their separately pinned original base/head provenance below. Production LOC across twelve touched modules: 3,860→4,041 (+181). All touched text, including benchmark/tests and the one-line sidebar CI repair, against integrated main766fae46a165: 9,809→11,420 (+1,611). Solid census: memos 30→37, signals 2→2, onSettled 2→2; effects, listeners, DOM queries, flush and owner APIs remain zero in the touched production files.The exact sharing failure was
chat session sharing menu > reads people only on opening and retains the latest member rows across reopening: the popover was open but its lazy access row had not arrived inside the one-second assertion window. The corresponding job passed on the latest completed scheduled main run40347483110, so this is not classified as inherited. The test now awaits Vitest’s dynamic-import settlement after the real opening click, then runs every original assertion. No production code, timeout, or assertion changed. The unchanged named replay passed in 418 ms, so the CI import delay itself was not independently reproduced. The corrected file passed 18/18 tests in 1.89 s; a fresh independent direct-route Codex P0–P2 review is scoped-clean. Native auto retirement was confirmed before the replacement push. Full CI 40361302770 on19e21df2628completed green: 46 jobs passed, 23 skipped, no failures.The green-head native recovery stopped before dispatch because #184383 had just landed on main. The reviewed merge keeps main’s cached effort/speed display and the reconnect catalog memoization: saved thinking data now belongs to the existing saved-model memo, and the saved speed display overlays the resolved fast-mode state outside the expensive catalog selection memo. Main’s restoration assertions and the reconnect no-recompute assertion all pass (4/4). Independent direct-route P0–P2 review of the complete candidate against
0261812512ais scoped-clean; UI typecheck, scoped lint/format and both builds pass. Current strict base/head assets: startup 271,130 → 271,341 B (+211 B), Chat 1,238,764 → 1,238,637 B (−127 B), New Session 751,535 → 752,022 B (+487 B). Requests are unchanged and no budget changed. Production UI LOC 3,880 → 4,055 (+175); all 23 files 12,059 → 13,668 (+1,609). Production Knip passes on both current base and merged head. Full CI 40369680033 passed onba9b3cf9420: 46 successful jobs, 23 skipped, zero failures (observed 18:12 UTC). No inherited-failure exception is used.The coupled cached-control merge also passed a fresh 20-triplet remote one-pane brief-drop check: 60/60 observations, unchanged live-history/sidebar/presence/send-readiness assertions. Base/A/A/head wall median: 496.85/497.75/483.65 ms; p95: 512.00/508.40/498.00 ms. Script CPU median: 160.95/164.31/148.97 ms (head −7.44%); p95: 173.06/172.20/158.61 ms (−8.35%). Task CPU median fell 242.08 → 226.13 ms (−6.59%). No Long Tasks entry occurred. Host load ranged 26.46–49.69 (median 35.44); A/A wall median/p95 changed +0.18%/−0.70%. Inspected first-pair screenshots contain only synthetic data and show the reconciled history, current sidebar, preserved draft, and enabled send control.
Complete reconnect timing and CPU tables
Values are median / p95. Update rows measure the update prompt; their Reload columns separately measure clicking Refresh through the new document becoming live. Cross-document CPU is not measured. Human decision time is excluded.
This uses the built production renderer, real browser transport client/reconnect owners, and a synthetic Gateway fixture. It does not measure a real Gateway, TCP establishment, provider latency or actual OS sleep. Sleep advances wall-clock state by 30 minutes and transitions visibility/transport; timers and performance clocks remain native. HTTP and RPC fixed delay are both 100 ms in the remote profile; bandwidth and packet loss are not modeled. Every live endpoint verifies editable composers, retained draft, refreshed history in every pane, changed presence and newly admitted sidebar membership. No chat send is issued.
Reproduction, using separately built immutable base/head directories:
Repeat with
--rtt 100 --asset-latency-ms 100. Base:a8771d6f51f53a30a25ca58d26c29b6854dcea10; production head:0cc1803ba2d12830ec740dcfefa2dca85f1a5d39; final diagnostics:c69e067192cd2c5c3bdca68a8c0f9defe452c16e; formatter/test-type repair:deb2a573293d156c3c74a1efc3dbe7316d70ed57(no runtime production change).Work counts and warm-picker measurements
Work is bounded by restoration-to-readiness, not the full lifetime of background traffic. Counts do not uniformly improve: all 26 local increased metric rows are below. The remote profile adds only an in-flight p95 change at ten-pane restart (3→4, matching A/A). These measurements do not establish why traffic shifted across the interval boundary. The separate automation-inventory lifetime defect identified during tracing is not changed by this PR.
The matching 20-triplet mobile first-open comparison passed 60/60 checks: task CPU 120.97→110.00 ms (−9.07%), p95 131.92→120.73 ms (−8.48%); script median −0.94%, p95 −2.16%. Raw wall/focus p95 worsened +92.75%/+46.14%; original A/A wall p95 +19.73%. Later native-input diagnostics do not retroactively explain those early tails. No general first-open latency claim.
Desktop reopen, 20 triplets and 60/60 checks: script CPU 48.45→38.00 ms (−21.57%), p95 −23.07%; task CPU 89.96→79.66 ms (−11.45%), p95 −11.31%. A/A wall timing is noisy, so no wall-time claim.
Inspected synthetic screenshots show the preserved rendering. Before and after the sleep case are byte-identical:
The mobile model picker before/after is also unchanged: