Repository navigation
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 maintainer review before merge. What this changesThis PR adds an opt-in browser probe that records dashboard loading placeholders, widget fetches, iframe lifecycle events, and sandbox messages. Example: A synthetic dashboard warm reload displays 60 shimmer animations.
Review scores
ProductKind: Performance · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open as a maintainer-directed attribution experiment, respecting its explicit do-not-merge status; no definite introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe existing warm-reload rig injects this script into its isolated Chromium page; browser lifecycle and presentation observations become diagnostic events in the captured report. flowchart LR
A[Warm reload rig] --> B[Browser init probe]
C[Dashboard placeholders] --> B
D[Widget fetch and iframe lifecycle] --> B
B --> E[Board widget timeline]
E --> F[Capture report]
Technical reviewBest possible solution: Keep attribution within the existing warm-reload rig and let its results guide a separate, measured runtime fix. Do we have a high-confidence way to reproduce the issue? This PR investigates loading attribution rather than fixing an established defect; target code was not executed during this read-only review. Is this the best way to solve the issue? A standalone init probe uses the existing injection and report owners without introducing a competing runtime path; all added observations serve the stated attribution scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ac6af4df2972. TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceOther +97. Total +97 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 November 1, 2026, 10:25 PM ET / November 2, 2026, 03:25 UTC. |
36f7e07 to
a09599e
Compare
a09599e to
2b4c0e0
Compare
…90925) Warm reloads of a dashboard deep link no longer flash three successive panel shimmers. The dashboard route now returns its entry immediately and starts the sidebar-region and board lazy wrappers without awaiting them, so only the rendered boundary waits. The shared panel placeholder uses the existing cached-session fact (captured once at pane mount) to keep the settled background for a 200 ms grace before normal loading feedback; cold admission stays immediate. Page-board grid/tab selectors now target the real board's direct children, so the placeholder's 56 px rows no longer collapse and shift (the source of the warm-dashboard CLS). The route-level preload block is removed. No persisted field, store, config, protocol or untrack allowance. Native 11-pair proof (AWS c7a.4xlarge, Team-scale synthetic fixture, 80 ms RTT): panel-shimmer exposure 13,290 -> 0 node*ms (11/11), cached widget layout -282 ms (11/11), all widgets visible -193 ms (11/11), widget content -160 ms (10/11), side-pane first rows / visible transcript -32/-30 ms (7/11), warm CLS occurrences 2/11 -> 0/11, snapshot growth 0 B; chat route unchanged. Lead exception: dashboard hello-handled +26 ms paired median (non-overlapping IQRs, 8/11 later; A/A +11 ms overlapping), accepted as the cost of compiling the board work before the handshake; no visible content is delayed. Supersedes #190820.
…enclaw#190925) Warm reloads of a dashboard deep link no longer flash three successive panel shimmers. The dashboard route now returns its entry immediately and starts the sidebar-region and board lazy wrappers without awaiting them, so only the rendered boundary waits. The shared panel placeholder uses the existing cached-session fact (captured once at pane mount) to keep the settled background for a 200 ms grace before normal loading feedback; cold admission stays immediate. Page-board grid/tab selectors now target the real board's direct children, so the placeholder's 56 px rows no longer collapse and shift (the source of the warm-dashboard CLS). The route-level preload block is removed. No persisted field, store, config, protocol or untrack allowance. Native 11-pair proof (AWS c7a.4xlarge, Team-scale synthetic fixture, 80 ms RTT): panel-shimmer exposure 13,290 -> 0 node*ms (11/11), cached widget layout -282 ms (11/11), all widgets visible -193 ms (11/11), widget content -160 ms (10/11), side-pane first rows / visible transcript -32/-30 ms (7/11), warm CLS occurrences 2/11 -> 0/11, snapshot growth 0 B; chat route unchanged. Lead exception: dashboard hello-handled +26 ms paired median (non-overlapping IQRs, 8/11 later; A/A +11 ms overlapping), accepted as the cost of compiling the board work before the handshake; no visible content is delayed. Supersedes openclaw#190820.
What Problem This Solves
Stopped experiment; do not merge. A signed-in warm reload of a dashboard deep link still cycles through loading placeholders for an already-loaded board. This candidate consistently reduces that exposure, but fails the transcript first-painted-row secondary gate. No product change is being landed.
Why This Change Was Made
The observed 60 shimmer identities come from three consecutive board placeholders with 20 nodes each: the panel boundary, board session surface, and board view. The per-widget discussion overlay is not involved in the reproduced HTML-widget workload. Cached implementation imports leave the rendered Solid lazy wrappers' readiness cold.
The candidate prepares the route entry and both existing lazy wrappers together in the dashboard component loader, removing the speculative implementation-import path. The existing first-frame e2e then observes the real widget iframe in the first cached-layout sample. This uses the existing cache and loading owners; no screenshot cache, persisted field, config, protocol, sandbox, or authorization change is introduced.
User Impact
Dashboard viewport shimmer-node exposure falls 40.5%, and sampled widget readiness moves 211 ms earlier (both improve in 11/11 pairs). However, dashboard first-painted rows move later in 9/11 pairs, with a +24.10 ms paired median. Their IQRs are also narrowly separated: base [553.52, 597.47] versus candidate [599.48, 627.44] ms. The configured adverse threshold is max(10 ms, 3% of 587.50 ms) = 17.63 ms.
The corrected A/A control does not reproduce this pattern: paired median +15.77 ms, 6/11 later and 5/11 earlier, overlapping IQRs. The primary lever is real, but this candidate misses the no-regression gate. The remaining iframe document load is still visible; this does not establish the campaign's complete cached-page exit criterion.
Evidence
Candidate
2b4c0e0020b1a306e2a51878c95fa4507a0baa1c; baseline88177be90aa808ab934feb357b7b5bcd7ab4eefd. All comparison samples use one AWS c7a.4xlarge leasecbx_a9d43f5c7bea(16 CPUs / 30.6 GiB), repo Chromium 156, an isolated real loopback Gateway, synthetic signed-in admission, 3,000 sessions, archived probe routes, bundled Workboard plus synthetic native plugin modules, and the operator's category/owner/pin/sidebar settings. Unprofiled, 80 ms CDP shaping, 8-second capture, AB/BA order alternation; eleven pairs on each route. The post-peer-setup two-second preflight was 73.9% idle; report-end load was 1.16 / 1.27 / 1.29 on 16 CPUs. No other workload was scheduled on the lease.The qualifying A/A capture uses two distinct, byte-identical baseline directories, preserving the UI-root swaps used in A/B. An earlier partial same-directory A/A was discarded because it skipped those swaps. A separate setup failure was traced to the rig's debugger-paused synthetic peer missing a Gateway heartbeat. Removing the debugger pause retained native live peers, declaration acknowledgements, and the exact three-viewer guard; no heartbeat or security check was relaxed.
Every completed A/B reload records one document and zero capture errors. Snapshot growth is 0 bytes: chat 62,973 → 62,973; dashboard 64,786 → 64,786. Widget readiness means first sampled non-inert board frames; content-ready is the HTML widget's own marker. Frame strips are Chromium-delivered compositor surfaces, not display-vsync completeness.
Initial critical-path attribution
These two earlier diagnostic reloads identify the owner; they are not qualification pairs. Values are milliseconds on the browser diagnostic clock.
The pre-iframe share is 61–63% of first-placeholder → reveal, correcting an earlier 61–72% range with a different endpoint. Board/layout data is already cached. Another capture starts an iframe before hello; hello is not a universal admission prerequisite. Board/panel JS and the immutable sandbox shell are cache hits. HTML has one fresh ticket-bound fetch. Host state is posted synchronously on outer load/render; the non-sandbox
verifyAuthorizationcallback is not used on this sandbox path. Server ticket admission remains unchanged. This static HTML fixture makes no widget data RPC, so it cannot establish data-heavy MCP app costs.Validation and scope
The existing cached-dashboard e2e was extended by four net lines. Candidate 2/2 passed (30.29 s wall), while the same assertion on pre-fix code produced 1 pass / 1 intended failure (37.86 s wall), using
pnpm test ui/src/e2e/dashboard-cold-load.e2e.test.ts --maxWorkers=1on attribution leasecbx_053afc460164. That lease is released. The affected UI/test source stayed unchanged through the subsequent rebases. Final-head focused route, board-surface, and sidebar suites passed 40/40 (12.40 s test-wrapper time; 13.13 s remote phase) oncbx_a9d43f5c7bea. Independent review is clean through P2, including the fixture repair. Formatter and diff checks passed.The lane stopped after the native secondary failed. The queued live-capped Team-scale bench, full UI e2e, changed-file/startup/deadcode gates, and ready-PR product CI were not run; no broad-acceptance or canonical live-capped qualification claim is made. Draft product CI is skipped. An earlier setup lease
cbx_999fe90e7a2dis also released.UI runtime delta is +12 LOC, needed to prepare the actual rendered wrappers before the first layout. The superseded speculative preload block is deleted. Prescribed non-test stat: 164 additions / 15 deletions, net +149: +12 UI runtime, +135 reproducible diagnostics, +2 allocation-record lines. The allocation grants exactly four regression-test lines. No changelog edit; release-note context would be fewer dashboard loading stages, subject to resolving transcript-paint cost.
Touched runtime owners:
ui/src/pages/chat/route.ts,board-session-surface.tsx,chat-pane-sidebar-view.tsx. Supporting scope: dashboard cold-load e2e, fourscripts/perf/probe/comparison files, test-line allocation, and Control UI docs.All deltas are candidate minus base; negative is earlier/lower. Distribution values are median [Q1, Q3].
chat — eleven A/B pairs
dashboard — eleven A/B pairs
Corrected A/A control
Both arms are baseline code, served from distinct identical directories. Deltas are copy B minus copy A. All eleven pairs are retained.
chat — A/A
dashboard — A/A
Inspected synthetic before/after strips
Pair 5 is near the median exposure reduction and also shows the early-layout cost. All content is synthetic. Common timestamps hold the last delivered representative surface; they are not extra sampled frames. No private capture or real account content is included.
Earlier interval: baseline reaches its cached dashboard layout while the candidate still holds the preceding loading surface.
Later interval: candidate widget content is visible while baseline still has the board placeholder.
Cleanup
All three leases (
cbx_053afc460164,cbx_999fe90e7a2d,cbx_a9d43f5c7bea) are released. The last owned-port check had no 19600–19699 listener; no local Gateway was started. All raw captures/reports and inspected synthetic strips are retained locally. No merge or deployment was performed. The lane branch remains available for the lead.