Skip to content

perf: reduce first-visit work outside chat - #183367

Merged
steipete merged 13 commits into
mainfrom
solid2/w-perf-route-ready
Oct 25, 2026
Merged

steipete merged 13 commits into
mainfrom
solid2/w-perf-route-ready

Conversation

@steipete

@steipete steipete commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Settings downloads unrelated editors before Appearance becomes usable, Cron downloads its job editor before showing the list, and cold non-chat routes initially paint a chat-shaped loading frame.

User Impact

First visits to Settings and Automations load less code. New Session, Sessions, Settings, and Automations paint a route-matched frame before JavaScript arrives. Hover/focus preparation uses the existing scoped owners, including the Settings command menu.

Why This Change Was Made

Keep the config/draft, session-list, and Cron owners authoritative. Split optional Settings sections and the Cron detail editor with Solid lazy and visible retry boundaries. Navigation intent fills the same managed Sessions window and config/schema owners that the mounted routes consume; retained snapshots keep their existing revalidation lifecycle. No second data cache, eager page registration, or shared-capability lifecycle change.

The 600 ms Settings/Cron target remains a follow-up goal. This change removes unnecessary first-visit work; it does not eliminate the remaining route-chunk and Gateway-request latency. In a representative head timeline, the first Settings config reads still begin about 1.1 s after activation (base: 1.4 s); Cron reads begin around 0.69 s (base: 0.73 s). Reaching 600 ms needs earlier route preparation and request admission.

Evidence

Acceptance was recorded before measurement: serial interleaved baseline/candidate pairs, a separate A/A control on this loaded Mac, median/p95 readiness and renderer CPU, unchanged request ownership, no chat regression, and no added layout shift. Production HTTP delivery uses the synthetic team-scale Gateway transport, 35 ms default RPC replay, cold HTTP cache, and 100 ms RTT / 10 Mbps HTTP shaping. These are renderer/transport-fixture measurements, not live-provider latency.

Remote, 20 interleaved pairs. Readiness and CPU are median / p95 in milliseconds:

Route Base readiness Head readiness Base task CPU Head task CPU
Chat 1,713.90 / 1,933.30 1,712.85 / 1,810.10 1,248.65 / 1,444.27 1,255.06 / 1,440.43
Sessions 1,045.55 / 1,071.00 1,045.85 / 1,055.10 247.76 / 278.12 247.17 / 266.83
Settings 1,702.70 / 1,735.20 1,433.45 / 1,538.00 397.25 / 433.11 364.11 / 386.49
Automations 873.50 / 965.40 833.70 / 874.90 237.05 / 270.97 233.83 / 253.49

Settings readiness improves 15.8%, script CPU 6.1%, and task CPU 8.3%. Cron readiness improves 4.6%. Chat task CPU moves +0.5% with a slightly lower p95. The isolated Sessions tail from the first ten pairs disappears at twenty pairs.

Localhost, 20 interleaved pairs, same cold-cache workload and 35 ms RPC replay:

Route Base readiness Head readiness Base task CPU Head task CPU
Chat 465.45 / 1,139.90 469.60 / 572.90 1,097.33 / 1,351.01 1,111.89 / 1,351.33
Sessions 208.95 / 375.90 203.15 / 373.90 204.44 / 226.92 208.69 / 230.72
Settings 230.40 / 750.60 223.20 / 401.30 299.94 / 372.86 302.71 / 340.51
Automations 230.40 / 314.70 211.70 / 255.10 235.60 / 303.52 227.20 / 248.36

Local readiness medians stay within the 5% band or improve, with every readiness p95 lower. Task CPU medians range from −3.6% to +2.1%; Chat task p95 is +0.02%, Sessions +1.7%. Chat script median is +0.06%, p95 +2.7%. The first ten pairs had isolated Chat/Sessions CPU tails; all samples remain in the 20-pair table. The A/A control demonstrates substantial transient task-CPU variability; no GC attribution is claimed.

New Session held-assets capture (one sample each, layout/paint proof): FCP 164→168 ms, first static shell 152→152 ms, CLS 0.001592→0.001139. This establishes route-correct pre-JS paint with no added CLS in the captured transition; it is not a stable latency estimate.

Intent behavior: two additional remote base/head pairs, with a configured 150 ms hover/focus dwell (recorded total dwell 218–462 ms including automation). The head starts the Sessions list request before activation in both pairs and issues it once; base starts it after activation. Per-action RPC counts remain 2 / 7 / 5 for Sessions / Settings / Cron, with no duplicate request groups. Settings code/owner preparation begins on intent, but its config RPCs still start after activation at this dwell. These four runs establish request behavior, not a stable timing estimate.

The A/A control's Cron p95 wall/task movement was +13.5%/+28.5%; CPU and structural counts therefore accompany the timing results. CPU/RPC collection continues through the harness's 750 ms idle settlement; wall readiness ends at the first frame with visible enabled controls. Settings readiness explicitly requires its font control to be enabled.

Structural measure Base Head
Settings first-visit resources 82 70
Settings encoded transfer 383,161 B 270,306 B
Cron first-visit resources 36 31
Cron encoded transfer 112,926 B 93,261 B
Settings / Cron RPCs 5 / 5 5 / 5
Startup JS gzip 273,129 B 273,520 B (+391 B)
HTML gzip (level 9) 8,296 B 9,033 B (+737 B)
Startup JS / CSS requests 7 / 1 7 / 1
Chat boot JS gzip 1,236,298 B 1,236,467 B (+169 B)
New Session boot JS gzip 749,990 B 750,181 B (+191 B)
Total CSS gzip / raw 303,055 / 1,595,572 B unchanged

The startup baseline is set to the actual measured head through the performance checker's reasoned update path, accepting the small byte increase for the measured readiness/CPU win. The unchanged CSS overage on the base is preserved; no unrelated cap increase.

Local proof: pnpm tsgo:ui; focused mount-fallback/Sessions route tests plus the Settings held-import regression; targeted UI lint and formatting; production Knip; same-host base/head production builds and strict asset comparison; two independent scoped-clean reviews. The Settings regression proves Appearance remains usable while the generic schema-editor import is held and switching back eventually renders the real field.

Touched files on the final follow-up head: 13,735 → 14,458 LOC (+723; 38 touched files). CI-driven test synchronization adds 36 net lines, and removing the redundant Sessions preload call-shape test removes 27. Later changes preserve the measured rendering behavior while repairing tests and removing two unused exports. Static-route CSS accounts for most growth. Settings itself adds 64 production lines. Solid census: Settings lazy registrations 0→8; effects/listeners/DOM queries/owner APIs remain zero; memos 11→11, local signals 1→1, optimistic signals 2→2, actions 1→1, intentional untrack 1→1. No owner-state copies.

Reproduction

Baseline: e8b251188f502b088dd037936062a1711ea302e1. Candidate production code: 101d25fc9de, with only the 2 px mobile static-frame inset correction separating the timing bundle from the final capture bundle; route runtime is unchanged. Both production builds used Node 26.12.1 on the same Mac, NODE_DISABLE_COMPILE_CACHE=1 OPENCLAW_BUILD_CACHE=0 pnpm ui:build.

node --import ./scripts/tsx.mjs scripts/bench-control-ui-cold-load.ts \
  --gateway-http --bundle-dir /absolute/base --compare-bundle-dir /absolute/head \
  --runs 20 --first-load --cold-http-cache --untraced --thread-cpu-time \
  --critical-path --face chat \
  --critical-path-route sessions --critical-path-route settings --critical-path-route cron \
  --network-latency-ms 100 --download-kbps 10000 --output /absolute/result

Run twice serially for 20 remote pairs. Omit network shaping for localhost. Intent proof adds --critical-path-intent-ms 150; activation-to-ready and total intent-to-ready remain separate. Strict asset check: pnpm ui:check-performance --dist /absolute/head --base-dist /absolute/base (passes after the measured baseline update).

New Session capture: same production HTTP profile with --boot-route new --runs 1 --first-load --cold-http-cache --hold-boot-assets --filmstrip-only.

Screenshots

Inspected synthetic-only production HTML captures, with boot assets held. Desktop 1719×1179 and mobile 390×844; chat's static PNGs are byte-identical on both viewports. Representative settled Appearance screenshots are pixel-identical.

Route Before After
New Session New Session before New Session after
Settings Settings before Settings after
Sessions Sessions before Sessions after
Automations Automations before Automations after
New Session mobile New Session mobile before New Session mobile after

CI follow-through

The first full PR run (40171157362, head 10c4763ae8bdb19826213d96973372457ae3e0fb) exposed Cron tests that assumed synchronous detail rendering. Shared test settlement now waits for the actual lazy editor; suggestion assertions enter the editor that owns those lists. All 30 failing Cron cases passed locally, as did two additional alias consumers found by the caller audit. The forwarded-stream disclosure test reproduced its CI failure locally and passes after waiting for the existing asynchronous rendering transition. The Muse Code provider-access fixture now waits for the existing config/provider readiness helper; its exact case passed locally before and after (the intermittent CI race was not reproduced). No assertions were removed, timeouts increased, or production behavior changed by these repairs. UI typecheck, touched-file formatting, and scoped lint passed for the repair batch; a fresh independent review found no actionable P0–P2 findings. All nine browser E2E shards and both real-Gateway shards passed in the first full run.

The Skill Workshop failure is inherited from scheduled main run 40170194218: the same shows a failed configuration read and retries only when requested test passes its assertions and then leaks Error: Configuration temporarily unavailable from skill-workshop-page.test.tsx:125:20 in both runs. This is exact test/error attribution, not shard-level attribution.

Review cleanup removes the Sessions mock call-shape test requested by ClawSweeper. The production-browser intent runs above remain the evidence for shared-owner request reuse and absence of duplicate requests.

Review-cleanup head: 372db57da37 (the only delta from the CI-repair head is removal of the redundant mocked Sessions test).

Settings base check: the exact held-import test (SHA-256 1e872a71c4689cceb6b5f8847958cd895305742c309538ad9eb949084c46f379) was copied unchanged to original base e8b251188f502b088dd037936062a1711ea302e1. After an isolated frozen install, Vitest started normally but did not complete module collection while the editor import was held; the task stopped it at 60.068 s (SIGTERM / wrapper exit 143). Base view.tsx:15 eagerly imports that held editor. This is blocked-collection evidence, not an assertion-red result. The same test passes on the head and renders the real Infrastructure field after release. An earlier dependency-resolution failure was setup-only and is excluded from behavior evidence.

CI follow-through on 372db57da37 (40173218608): the earlier Cron consumer cases and Skill Workshop passed, while retires queued cron event refreshes on gateway source exposed a test-helper timing regression. Waiting for dynamic imports added an event-loop turn even to owner-only fixtures with rendering disabled. The helper now waits for imports only with render: true; the lifecycle case reproduces red before and passes after, and the offline-drafting editor case also passes. This changes no production code or expected request counts.

Lifecycle-reviewed head: 1e9994b65ab; the lifecycle guard passed focused regression/editor checks, scoped lint/format, and fresh independent review.

Additional pipeline experiment rejected (not in this PR): starting the config owner’s display read before editor activation moved config.get from roughly 1.1 s to 4 ms after activation, but five complete interleaved base/A/A/candidate cycles on the same remote profile showed no readiness gain. Median Settings readiness was 1434 / 1446 / 1483 ms, script CPU 107.34 / 104.94 / 165.77 ms, and task CPU 358.78 / 361.28 / 472.77 ms. The 54% script and 32% task CPU regressions exceed the performance limit despite a stable A/A control. The experiment was stopped early and removed; the measured production change above is retained. Simply starting this read earlier is not a safe route to the 600 ms target.

CI on 1e9994b65ab (40174247030) passed the repaired Cron lifecycle case, all other UI unit cases, all nine browser E2E shards, and both real-Gateway shards. Its sole failure was streaming Markdown DOM > keeps visible plain text in place when deferred formatting catches up: two observed character-data mutations instead of zero. Both the exact test and all 43 tests in that file passed locally before correction; the exact test also passed on the original base, so this is not attributed as inherited. The formatting-only test now explicitly awaits the existing lazy Markdown runtime before enabling its fake clock and observer. Its assertions are unchanged; markdown-live-loading.test.tsx retains cold-loading DOM coverage. The corrected exact case passes locally. This is a readiness-fixture repair, not a claim that the intermittent CI failure reproduced locally.

Pre-integration reviewed head: 80176fa008f; the formatting-fixture correction passed its exact browser case, scoped lint/format, and independent review with no actionable findings. The subsequent export cleanup preserves the measured rendering behavior.

Refreshed main integration

Merged f7fa6508cce4e5e58ca8d0df75e88540b53fbc7c using a normal merge. The only conflict was the forwarded-stream browser test; retained main’s stronger fresh-DOM polling fix exactly. No production conflicts. pnpm tsgo:ui and the exact conflicting browser case pass after the merge.

Both production bundles were rebuilt on this Mac. The strict base/head comparison passes with no violations or warnings:

Surface Main 2f95e97 Merged head Requests
Startup JS gzip 272,893 B 273,686 B (+793 B) 7 → 7
Startup CSS gzip 40,097 B 40,097 B 1 → 1
Chat boot JS gzip 1,238,504 B 1,239,221 B (+717 B) 26 → 26
New Session boot JS gzip 751,139 B 751,920 B (+781 B) 20 → 20
Total CSS gzip / raw 303,018 / 1,595,655 B unchanged unchanged

The standalone main check retains its pre-existing raw-CSS overage; this PR adds no CSS bytes. The startup baseline is refreshed to the exact final 273,686 B measured head. Timing tables above remain the original 20-pair evidence against e8b2511, not a claim of new timing runs after integration.

Pre-cleanup head: 02b6844155a2b5abbc56a1a8f865218aa54f7d31; its generated startup baseline passed independent review.

Final export cleanup and proof

Export-cleanup reviewed head: 37b87b4dcdff7b1e193ef2548e8bfb08f6aa5847. Full production Knip exposed two newly unused Settings exports. ConfigPage and its props type are now private; their test-only consumers mount the existing ConfigRoute, the same production boundary. The rendered fixture accepts admitted route data; the separate owner-state fixture retains its nullable contract. All normalization/navigation assertions remain; two synthetic null-update setup calls, which cannot reach the internal component through ConfigRoute, were removed. The initial fixture attempt exposed four normalization failures; the corrected route setup passes all 29 distinct cases across lazy-editor, Memory route, and Memory mutation files. UI typecheck, scoped lint/format, and independent review pass.

A final production rebuild and strict base/head comparison pass with the updated values in the table above. The remaining full-production Knip exit is inherited: exact comparison against f7fa650 has 14 matching findings and no new entries. No ignores were added. The earlier scoped Knip checks do not replace this final full report.

Identical baseline and final full-production Knip findings

Command: pnpm dlx --package [email protected] knip --config config/knip.config.ts --production --no-progress --reporter compact --no-config-hints --exclude duplicates.

Unused files (4)
src/infra/daemon-runtime-probe.entry.ts: src/infra/daemon-runtime-probe.entry.ts
src/infra/daemon-runtime-probe.ts: src/infra/daemon-runtime-probe.ts
src/infra/node-runtime-probe.entry.ts: src/infra/node-runtime-probe.entry.ts
src/infra/runtime-process-script-file.ts: src/infra/runtime-process-script-file.ts
Unused exports (9)
extensions/logbook/src/store-schema-admission.ts: logbookEngineSchema
extensions/team-reports/src/store-database.ts: teamReportsEngineSchema
extensions/workboard/src/sqlite-store-schema.ts: workboardEngineSchema
node-sqlite.mjs: isSqliteWalResetSafeVersion
runtime-process-bootstrap.generated.mjs: resolveRuntimeBootstrapToolingEntrypointUrl
src/agents/model-fallback-attempt.ts: resolveModelFallbackCandidateAgentRuntime
src/agents/model-fallback-sticky.ts: resetStickyRateLimitFallbacksForTest
src/gateway/worker-environments/workspace-quiescence-scripts.ts: workspaceQuiescenceScripts
src/infra/update-candidate-state.diagnostics.ts: UPDATE_STATE_INSPECTION_PROGRESS_PREFIX
Unused exported types (1)
src/gateway/worker-environments/workspace-manifest-script-bindings.ts: WorkspaceManifestProgramProcess

Final-head CI and remaining-latency experiments

Run 40178964351 on 37b87b4dcdff7b1e193ef2548e8bfb08f6aa5847 passed all UI unit and real-Gateway jobs. Its only failed test was renders local assistant audio through server metadata (structured.mp3, structured): a 120-second timeout before browser navigation. The retained public failure state shows a blank page with no Gateway RPCs; logs show fixture-worker preparation finishing in 115,610 ms immediately before the timeout. The newest completed scheduled main run (40177240126) passed UI E2E, so this is not attributed as inherited. One rerun of the affected job was requested for the diagnosed fixture-preparation delay; the exact-head CI remains the landing gate.

A separate Cron owner/view split was implemented and measured, then rejected and completely removed. The real route owner could start reads while the renderer import was held (regression red on the unchanged source, green with the split). Six complete interleaved base/A/A/candidate cycles at 100 ms RTT / 10 Mbps nevertheless increased readiness medians from 840 / 827 ms to 1,003 ms. Script CPU fell from 75.21 / 74.14 ms to 58.93 ms, but the extra module round trip outweighed request overlap. This was a bounded negative experiment, stopped before the planned twenty cycles; no localhost continuation or candidate publication followed. The retained PR remains the measured win above.

Fixture-preparation repair

Structured-audio repair head: 4dceddeb58d9912be00b0d1cff22702523aeb67f. The single shard rerun reproduced the same pre-navigation structured-audio timeout; worker preparation took144,196 ms against the120,000 ms per-case budget. The file now awaits that same production fixture module in its own beforeAll hook. The existing180,000 ms setup budget, per-test timeout, fixture builder, and every assertion are unchanged. This is five net test lines; no production or measured-bundle change. The targeted chat E2E typecheck, scoped UI lint, formatting, and independent P0–P2 review pass. Local E2E was not run under the campaign budget; the new exact-head full CI is the broad gate.

Memory presentation lifetime and setup follow-up

Run 40182933694 on the structured-audio repair head passes the repaired media shard. Its two remaining failures were the Memory Overview stylesheet-retirement assertion and the service-worker suite's setup hook. The Memory test passes on scheduled main 40181005667; it is not treated as inherited.

The admitted Memory route now reports no presentation snapshot for an inactive Overview or Memories tab. The existing bridge retires that scope immediately and does not reload its assets while Solid retains the previous component; callback authorization reads the same live scope. Asset disposal remains owned by the runtime's abort signal. This adds no cache, new lifecycle owner, or page remount. A focused test covers explicit scope retirement while the rendered component remains mounted, alongside all existing Memory consumer tests (50 cases total). The original intermittent E2E sequence was not reproduced in the bounded local production captures, with either the editor available or its import held; exact-head full CI remains the end-to-end verdict.

The service-worker suite built its production fixture successfully in 114 seconds, then exceeded its local 120-second setup override before any case ran. Its setup now uses the shared E2E 180-second budget. Case timeouts and all behavior assertions remain unchanged.

UI typechecking, scoped lint and formatting pass. A fresh production build and strict same-machine base comparison retain exactly the asset numbers above: 273,614 B startup JS gzip, seven JS requests, one CSS request, and unchanged total CSS. Solid refactor census for the two production modules is unchanged: zero effects, render effects, untrack, direct listeners/queries, cleanup hooks, flush calls, or owner-API calls were added. Independent review covers the lifetime fix and the setup-budget repair.

Follow-up reviewed head: 18f7b99a45b81719e2ff6bafc4d6d43d5a8828a5.

Current-main conflict repair

Full CI 40185265912 passed on 18f7b99a45b81719e2ff6bafc4d6d43d5a8828a5, including the Memory and service-worker cases, all UI unit and E2E shards, and both real-Gateway shards. Native landing then stopped before dispatch on a content conflict after main advanced. Main 2f95e977 was merged normally; the sole conflict was the benchmark's Settings readiness condition. The resolution retains main's mobile-sidebar handling together with the enabled font-control requirement.

The production asset table above is refreshed against this new main on the same Mac. The original timing tables remain original-base measurements; they are not presented as new timing runs after this integration. A fresh independent review covers the merged candidate. Full CI 40187605830 passed on the integrated head, including all UI and real-Gateway shards. No failed or pending CI is being waived.

Current integrated head: add2fa9f385e4a39ef09b21771b6e032dd73adb3.

Current production Knip comparison against 2f95e977: two shared unused core exports (resolveModelFallbackCandidateAgentRuntime and resetStickyRateLimitFallbacksForTest), no head-only findings or new ignores. The baseline also reports one unresolved build-script import absent on the candidate. Earlier fourteen-finding counts above describe the older f7fa6508 comparison. UI/scripts typechecks, scoped lint/format, and both integration reviews pass.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 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 25, 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-25T11:10:24.169640Z add2fa9 New commits
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 25, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 10c4763ae8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/pages/cron/view.tsx Resolved
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR defers optional Settings and Automations editors, prepares existing data owners on navigation intent, and paints route-matched loading frames.

Example: First visit to Settings → Appearance under the recorded remote HTTP profile.

  • Before: The browser fetches 82 resources totaling 383,161 encoded bytes.
  • After: The browser fetches 70 resources totaling 270,306 encoded bytes while unrelated editors remain deferred.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused performance work with browser evidence and the prior consumer defect repaired; current-head CI attribution remains open.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Production-HTTP browser comparisons exercise first visits and intent preparation through the real UI with synthetic Gateway transport; inspected New Session and Settings screenshots directly show the changed frames, and subsequent commits only repair test consumers.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: First visits download unrelated editors and briefly show a loading frame shaped for a different route.
Reason: The owner-directed change records reduced transfer and improved readiness while explicitly reserving the broader 600 ms target for follow-up.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the measured performance improvement is useful and owner-directed, and the prior Cron finding is resolved; current-head CI still needs failure attribution.

Priority: P2
Reviewed head: 372db57da37e6e76463c4793647114f1b182c904

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The Settings regression has passing head evidence and source-backed blocked collection on the base, rather than an assertion-red baseline run.
Agent review details

How this fits together

The Control UI receives browser navigation, loads route code and Gateway data through scoped owners, and renders the requested screen through Solid.

flowchart LR
  A[Browser navigation] --> B[Route preparation]
  B --> C[Existing config and session owners]
  B --> D[Lazy editor modules]
  C --> E[Solid page rendering]
  D --> E
  F[Static route frame] --> E
Loading

Technical review

Best possible solution:

Retain the measured lazy-loading changes and existing data owners, with the repaired Cron consumers and normal exact-head CI gates.

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

Current-main eager imports establish the unnecessary first-visit work, and supplied browser measurements exercise it; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Deferring optional editors through existing Solid boundaries and preparing the existing managed owners is an appropriate focused solution; no unnecessary replacement state owner was found.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 64b149c adds ui/src/pages/sessions/route.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 64b149c6000b; files: ui/src/pages/sessions/route.ts)

PR surface

Source +467, Tests +162, Docs +12, Other +37. Total +678 across 30 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 9 506 39 +467
Tests 17 243 81 +162
Docs 1 12 0 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 3 70 33 +37
Total 30 831 153 +678

Review metrics

Metric Value Why it matters
Benchmark option 1 new flag: --critical-path-intent-ms Separates hover/focus preparation from activation-to-ready measurement without adding product configuration.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded, measured improvement to first-visit Control UI performance.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-25T07:19:15.772Z sha 10c4763 :: needs changes before merge. :: [P2] Migrate Cron test consumers with the lazy detail split

Reviewed October 25, 2026, 3:42 AM ET / 07:42 UTC (Revision 2).

@steipete

Copy link
Copy Markdown
Contributor Author

Addressed the Cron lazy-render consumer finding in 9192665, retained in final head 372db57. All 30 prior Cron failures plus both alias-consumer cases pass. Helpers wait for real lazy readiness, and suggestion fixtures enter the editor without weakening assertions. The redundant Sessions mocked call-shape case is removed; the browser intent evidence proves one pre-activation request with no duplicate group. The PR also records the exact Settings base collection-block limitation and the passing unchanged head test.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 25, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 25, 2026
@steipete
steipete enabled auto-merge (squash) October 25, 2026 10:10
@steipete
steipete disabled auto-merge October 25, 2026 10:23
Use the admitted route to end inactive plugin presentation scopes while rendering is retained. Keep abort-owned asset disposal and fence callbacks against the same live scope. Align the service-worker production fixture setup with the shared E2E hook budget.
Preserve main mobile Settings readiness while retaining intent timing. The prior exact-head full CI passed; the merged head will receive refreshed asset proof and full CI.
@steipete
steipete merged commit 40f1601 into main Oct 25, 2026
135 of 137 checks passed
@steipete
steipete deleted the solid2/w-perf-route-ready branch October 25, 2026 11:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
* perf: reduce first-route loading work

* perf: record measured route-readiness byte tradeoff

* test(ui): await lazy views in route readiness coverage

* test(ui): remove redundant intent call-shape coverage

* test(ui): preserve owner-only cron settlement timing

* test(ui): prepare runtime before streaming mutation checks

* perf: refresh measured route startup baseline

* refactor(ui): keep settings renderer private to its route

* test(ui): prepare structured media fixtures before cases

* fix(ui): retire inactive Memory settings presentations

Use the admitted route to end inactive plugin presentation scopes while rendering is retained. Keep abort-owned asset disposal and fence callbacks against the same live scope. Align the service-worker production fixture setup with the shared E2E hook budget.

* chore(ui): record merged route readiness baseline
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: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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