Repository navigation
fix(control-ui): keep loading skeletons continuous on reload - #175212
Conversation
|
🦞👀 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: needs changes before merge. What this changesThis PR immediately shows the existing route skeleton during initial module loading by removing the one-second presentation delay. Example: A signed-in user reloads /chat/main while its route module is still downloading.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open as a maintainer-owned experiment: current main retains the blank loading interval, and no actionable patch defect was found; the explicit do-not-merge hold remains. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI outlet consumes synchronous router matches and renders loading, error, active, or retained page content through its existing Solid presentation owner. flowchart LR
A[Signed-in reload] --> B[Application shell]
B --> C[Router outlet]
D[Router matches] --> C
C --> E[Existing loading skeleton]
C --> F[Loaded route content]
Technical reviewBest possible solution: Use the existing loading owner immediately if the completed experiment confirms a smoother boot transition without disturbing retained navigation. Do we have a high-confidence way to reproduce the issue? Current-main source withholds initial loading presentation for one second when a route module is pending, and the PR reports an immediate-skeleton regression failing before the change; no target code was executed during this review. Is this the best way to solve the issue? Removing the presentation delay addresses the blank interval at its existing owner, deletes obsolete state, and preserves active-page selection, errors, retries, and lazy imports. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9d7402370dcc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -33, Tests +13. Total -20 across 5 files. Added test files: 0. View PR surface stats
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 17, 2026, 2:18 AM ET / 06:18 UTC. |
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. |
|
@clawsweeper re-review The experiment is complete and this PR is ready for review. The body now includes seven interleaved pairs, inspected synthetic before/after loading-transition filmstrips, green exact-head CI, and the completed full UI E2E results with failure classifications. The remaining dictation full-run failure is explicitly recorded as unclassified; passing focused replays are not claimed as a fix. No source changes followed the reviewed head. |
|
🦞👀 Re-review progress:
|
…art (openclaw#175212) On a cold reload the boot shell's skeleton was replaced by an empty outlet, then a second, different skeleton, then content: live 50 ms sampling on Team r149 showed skeleton at ~167 ms, a blank frame at ~274 ms, a new skeleton at ~379 ms. The router outlet delayed its loading panel by one second while a route's code chunk was still loading with no active route, rendering an empty region in between. The cold-pending delay is removed: while a route module loads on a cold start, the outlet shows its loading panel immediately, so the hand-off from the boot skeleton is continuous. In-app navigation is unchanged (the active route keeps rendering while the next one loads), and loading-panel retention from openclaw#174392 stays intact. Seven interleaved AWS c7a.4xlarge pairs: blank hand-off 31.8 -> 0 ms (all pairs); FCP 432 -> 416 ms; median CLS unchanged (0.0378). Runtime -33 LOC. 26 focused tests pass; exact-head CI green; full-UI failures reproduce on main apart from one dictation assertion that passes in isolated and neighbouring-file replays.
What Problem This Solves
A signed-in reload of a dashboard deep link can show a boot skeleton, a blank shell, a second skeleton, then content. The cold-load campaign measured the blank interval between about 274–278 ms and 344–379 ms in two samples.
User Impact
The route outlet now shows its loading panel as soon as the shell takes over. Existing pages remain visible during cold navigation; retained chat/loading panels from #174392 are unchanged.
Why This Change Was Made
The shell becomes available before the route module does, but the outlet deliberately withheld its initial loading panel for one second. Remove the timer, pending flag, and render argument rather than adding a second handoff owner. Production LOC: −33 across the two outlet modules (4 added, 37 removed). No configuration or stored-shape changes.
Evidence
Quiet AWS
c7a.4xlarge, leasecbx_3c8ca2ee6589(16 CPUs, 30 GiB RAM), repository Playwright Chromium, canonical Team-scale bench/default session view, persisted warm reloads. Seven interleaved pairs; order alternates. Both bundles use the same final base and build identity; baseline restores only the two production files. Timings below exclude the separate traced filmstrip runs.Blank-gap paired deltas (candidate − baseline, ms): −31.8, −25.1, −26.4, −33.3, −22.0, −31.9, −65.5. All seven improve; median paired delta −31.8 ms. FCP deltas: −48, 0, +32, −128, 0, −16, 0. CLS deltas: +0.003533, +0.001229, −0.000068, −0.009295, 0, +0.003464, 0. Blocking deltas: +15, +60, −67, −142, +45, +40, −24. Secondary metrics meet the campaign's no-regression definition; this is a visual continuity fix, not a CPU-speedup claim.
50 ms sampling plus mutation transitions reproduce the live DOM sequence on the baseline: 17 skeleton elements → 0 for 32.2 ms → 9. Candidate: 17 → 9 directly. The separate traced screenshots below show the boot, handoff, pane loading, and content stages; traced timestamps are not the timing comparison.
The immediate-skeleton regression fails on the original code and passes with the fix. Focused local proof: router-outlet (8 tests; wrapper wall time 2.98 s), router-outlet-presentation (13 tests; 2.51 s), shell-module-loading browser E2E (5 tests; Vitest 15.49 s). Independent review is clean through P2.
Exact-head GitHub CI passed at
9fcfaa6086ca4614c0286efbe08b87993d2916d5.Remote validation ran on the same AWS lease
cbx_3c8ca2ee6589:node scripts/check-changed.mjs: formatting, lint, all ten affected test type graphs, UI typecheck, and the other guards passed except the max-lines ratchet and dead-export scan. The dead-export scan reports the identical 13 distinct findings with the PR changes removed. The max-lines ratchet reports existing suppressions inchat-message.test.tsx,config-page-state.ts, andsessions-page-state.ts; the same three findings reproduce with this PR removed, and none is modified here.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts: full suite completed in 5384.62 s: 815 files passed, 4 failed, 1 skipped; 3540 tests passed, 2 failed, 5 skipped. The original failure result is retained; focused rechecks are listed separately below.ui/src/e2e/tooltip-first-activation.e2e.test.tsui/src/pages/workboard/workboard-native-bundle.e2e.test.tsextensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.tscrabline-transport.ts:661stack.ui/src/e2e/browser-dictation-status.e2e.test.ts:562). All 13 tests pass in isolated whole-file runs on both candidate and main-base source. A bounded main-base replay with neighboringchat-outbox-payloadsandskills-libraryfiles at two workers also passed (3 files / 28 tests, 68.04 s). Unclassified full-run failure, not a proven fix or inherited failure.The skipped file is
ui/src/e2e/desktop-resize.real-gateway.e2e.test.ts. Baseline classification used main-base source7068125f174f901300e1ececd4abbbaa8f7014a5by removing this PR's five-file diff, then restored the candidate and verified a clean diff. It does not claim coverage of later main commits. No unrelated fixes, retry policy, or assertions were changed.Reproduction:
node --import tsx scripts/bench-control-ui-cold-load.ts --warm-reload --probe-dir <rig-probes> --init-script <50ms-continuity-probe> --bundle-dir <baseline-or-candidate> --runs 1 --untraced. The optional Online-view setup stalled at the sidebar-cache prerequisite, so it is excluded from the results. An initial relative build-output-path mistake was corrected before collecting these pairs.