Skip to content

perf(control-ui): reveal themed dashboard frames during load - #178740

Merged
steipete merged 2 commits into
mainfrom
steipete/coldload-dashboard-reveal-no-flash
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/coldload-dashboard-reveal-no-flash

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A dashboard app can already have drawable pixels in its isolated iframe while the host thread is busy with reload work. Keeping the frame hidden until the host handles the ready message delays the visible dashboard. Simply exposing the frame also caused a browser canvas flash when its initial color scheme differed from the embedding iframe.

Seed the sandbox shell's theme from a stable URL fragment and apply it synchronously before body parsing. Set the embedding iframe to that same scheme, synchronize later theme updates, and refresh the seed only for a real sandbox navigation. The transparent initial frame can composite over the existing skeleton while staying inert until ready. Error, stale, approval, timeout, and retry presentation keep their existing owners. Delete the obsolete double-animation-frame reveal path.

Evidence

11 interleaved baseline/candidate pairs per theme on one quiet AWS Crabbox c7a.4xlarge, lease cbx_7b6bbd7871e3, run. Repository Playwright Chromium, synthetic Team-scale dashboard, rotating tickets, separate sandbox origin and its own font. Connect floor 350 ms, connect latency 240 ms, board.get 160 ms, other RPCs 35 ms. Measurement commit 8da6fc0d5f050fc619861564a106c4a06829706a; all four reveal runtime files are byte-identical in this independent split and its test-only repair. Both sides use the same candidate sandbox server; isolated bundles compare hidden/revealed presentation under that shell, not old/new server deployments. No private captures or real account data are included.

First visible chart pixels Baseline median [IQR] Candidate median [IQR] Median paired delta Better Iframe flashes
Light 1194.8 [1156.0, 1253.2] ms 964.6 [944.7, 978.9] ms −233.0 ms 11/11 0/11
Dark 1269.0 [1196.1, 1292.8] ms 949.5 [944.1, 961.3] ms −278.6 ms 11/11 0/11

Pixels are detected in compositor screenshots of the synthetic chart, not host message or DOM observer timestamps. All runs insert one iframe, and first chart pixels follow insertion. Candidate pixels precede the host’s synthetic app-ready receipt in 11/11 runs per theme: paired median lead 110.2 ms light and 107.8 ms dark. Receipt timestamps describe host dispatch, not network arrival; visible pixels no longer depend on that dispatch. Authored app JavaScript and font startup remain outside this change. The campaign's original signed-in deep-link evidence recorded 14 visual states and dashboard paint at 11.75 seconds; later attribution isolated this host-side reveal wait.

Predeclared primary: at least 9/11 better with negative paired median. Secondary regression: worse non-overlapping IQRs, or at least 9/11 worse pairs with median paired rise above max(10 ms, 3%). Hello, FCP, LoAF blocking, chat catch-up, and chat-route controls pass. No pair was dropped. Combining this with the independent restore fix also passes (light −220.1 ms, dark −205.9 ms paired, 11/11 each), with 0/11 iframe flashes per theme.

Screenshot review screened 5,318 post-navigation frames across reveal-only and combined runs, checked per-run pre-content/first-chart/settled states and full representative timelines. The initial whole-document blank precedes the iframe and is distinguished from an iframe canvas flash. Both themes retain their expected dashboard background through paint and settlement.

Benchmark command

Use the baseline/candidate bundle construction described above, one fixed build ID, the campaign probes, and one FIXTURE_NOW_MS captured at the start of the comparison. The benchmark alternates baseline/candidate for 22 runs (11 pairs).

node --import ./scripts/tsx.mjs scripts/bench-control-ui-cold-load.ts \
  --bundle-dir "$BASELINE_BUNDLE" --compare-bundle-dir "$CANDIDATE_BUNDLE" \
  --runs 22 --warm-reload --dashboard-widget --chat-dashboard-route \
  --connect-not-before-ms 350 --method-latency-ms connect=240 \
  --method-latency-ms board.get=160 --latency-ms 35 \
  --fixture-now-ms "$FIXTURE_NOW_MS" --probe-dir "$PROBE_DIR" --history-validator-delay-ms 1 \
  --dashboard-paint-marker --filmstrip-only --color-scheme light

Repeat the same 11 pairs with --color-scheme dark. The chat control uses --face chat --untraced, retaining the 1 ms validator delay and omitting --chat-dashboard-route, --dashboard-paint-marker, --filmstrip-only, and --color-scheme.

Validation

Final head: 675e0c8ad638a22569c5eb02f7d64b805c3eaafc, rebased onto 05ade6d2df13f660e9df17cbedaeba5eb9f93dfc. Independent split and test-repair reviews are clean through P2. Fullscreen and A2UI coverage now distinguish visible painting from interaction readiness by waiting for inert removal; the held-document fullscreen state remains visible, inert, and covered by its loading status. The repair changes tests only; all four runtime files are byte-identical to the measured version. Final-head proof ran on AWS c7a.4xlarge, lease cbx_e5f9f79bb739, run: full UI e2e: 838 files / 3,617 tests passed; 4 files / 4 tests skipped, command wall 6,425 s (Vitest 6,303.95 s). All changed and sibling browser scenarios are included. Focused owner tests: 5 files / 37 tests passed (38 s); UI types passed (15 s); fullscreen 9 tests passed (66 s including build), A2UI 6 tests passed (61 s including build). The four opt-in skipped files are desktop-resize, peer-followup-restart, chat-steer-deferred-custody, and deepseek-search real-Gateway e2e. The working tree stayed unchanged. The lease is released. Stop before merge.

Exact-head CI completed with three underlying failures: a test-mock export ratchet and two UI shards. The mock ratchet is an unchanged upstream doctor test, repaired on main in 2466488c29e2. The UI failures are the menu-highlight assertion in menu-surface.browser.test.tsx and lazy-content assertions in chat-composer-plus-menu-loading.test.tsx; their owners/tests are unchanged and do not execute the modified board-frame paths. The exact-head menu-surface pinned-Bun replay passes (22 tests, 13 s). The original failing CI merge 87c1ef107751ea8ce543d879304c65a91760c02e (PR head 675e0c8a plus CI base 92477a7) also passes both original shard inventories with three workers restricted to two CPUs: shard 1/3 266 s, shard 3/3 253 s, including all seven composer-loading cases. This bounded replay used AWS lease cbx_bf62248fe437, run. The relevant test/owner blobs are identical to the PR head.

Main snapshot f5f3ed438533af1a97af9734d2b3518902f6d3b0 passes the same saved shard inventories (129 s / 126 s) and the mock ratchet (14 s), on lease cbx_6410a35ff63d, run. The failure assertions were verified in the passing logs. Main has dependency updates; its newer retained-focus menu branch is not used by these tests. The AWS host has more memory than the original CI runners, and cache-dependent dispatch ordering can differ. These passing replays do not establish a repair or reproduce the same failures on main. The two menu failures remain intermittent/unreproduced; the GitHub run remains red. No GitHub jobs were rerun or branches updated to chase unrelated reds. This is an explicit remaining CI gate for the lead.

Prior exact-runtime proof: frame owner and resilience, theme owner, sandbox/gateway owners, native first-theme regression, and eight sibling browser files pass. The new browser regression fails on the old shell at initial color-scheme: normal before any theme delivery, then passes both themes and later updates with the fix. The error/stale/needs-approval and timeout/retry owners remain covered by their existing tests.

pnpm test <file> --maxWorkers=1 walls: frame resilience 4.88 s; frame owner 4.31 s; widget theme 3.76 s; native sandbox theme 57.92 s including production build/setup. The browser composition is needed to establish synchronous shell initialization before first iframe canvas paint. The earlier combined-head full UI attempt was superseded during the split and is not claimed as a full-suite pass.

Scope and Release Note

Runtime and requested production exclusion filter: +48/−37, net +11 LOC. Growth preserves the initial-theme/navigation contract; the double-animation-frame state and callbacks are removed. No new configuration option, durable Gateway shape, CSP permission, or approval model change. The fragment does not change the sandbox HTTP request/cache key; ready-message matching retains the complete iframe URL.

Release-note context: dashboard frames show app pixels while the host is busy finishing reload work, without a mismatched-theme browser canvas flash. The independent restore correction is #178658.

Synthetic Screenshots

These panels show the same synthetic dashboard near 1.05 seconds, with actual capture timestamps labeled.

Synthetic dashboard reload in light mode, baseline and candidate

Synthetic dashboard reload in dark mode, baseline and candidate

All reveal/composition medians, IQRs, and per-pair deltas

combined-chat

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Hello handled 712.4 [708.5, 716.2] 710.9 [707.9, 719.9] -0.4 6 no no
Connect sent 438.8 [435.6, 442.6] 439.2 [433.7, 445.1] -1.5 6 no no
FCP 248.0 [244.0, 248.0] 248.0 [246.0, 250.0] 0.0 4 no no
LoAF blocking 125.0 [117.5, 128.5] 126.0 [123.0, 137.5] 7.0 4 no no
Chat catch-up 1068.8 [1056.6, 1078.2] 1067.0 [1050.5, 1089.0] 10.0 4 no no
First transcript paint 480.0 [476.0, 482.0] 476.0 [474.0, 484.0] 0.0 5 no no
Pair Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -0.4 -5.7 -12.0 -22.0 52.6 -8.0
2 -9.3 -11.3 12.0 7.0 2.6 -12.0
3 14.6 13.5 4.0 12.0 10.0 16.0
4 -7.5 -7.5 0.0 35.0 -5.2 -4.0
5 5.4 3.7 -8.0 24.0 58.2 4.0
6 -1.6 -1.5 -4.0 7.0 -38.8 0.0
7 20.5 19.5 4.0 16.0 21.5 20.0
8 4.8 2.6 0.0 18.0 16.9 4.0
9 13.3 11.4 16.0 -8.0 25.5 8.0
10 -8.6 -6.9 4.0 -12.0 -15.3 -8.0
11 -7.8 -4.8 -4.0 -6.0 -64.6 -8.0

combined-dark

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Visible dashboard pixels 1176.5 [1160.4, 1261.7] 968.8 [954.2, 982.4] -205.9 11 yes no
Iframe inserted 543.8 [534.7, 568.5] 552.1 [542.8, 568.5] 12.7 2 no no
Hello handled 751.1 [746.3, 766.8] 761.5 [751.8, 774.0] 4.3 4 no no
Connect sent 476.8 [468.2, 489.8] 485.1 [474.6, 497.3] 6.7 2 no no
FCP 256.0 [256.0, 260.0] 256.0 [256.0, 260.0] 0.0 3 no no
LoAF blocking 166.0 [153.5, 182.0] 171.0 [157.0, 180.5] 5.0 5 no no
Chat catch-up 1200.3 [1166.0, 1231.0] 1169.3 [1159.8, 1182.6] -38.3 8 no no
First transcript paint 496.0 [490.0, 526.0] 504.0 [494.0, 518.0] 4.0 2 no no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -415.9 -275.3 14.0 28.9 -92.0 -123.0 -41.5 -180.0
2 -446.7 14.7 1.2 6.7 12.0 -41.0 -51.9 12.0
3 -169.8 2.2 -1.4 0.9 4.0 5.0 -105.5 4.0
4 -191.6 28.0 33.9 29.2 8.0 27.0 27.7 44.0
5 -205.9 4.2 -0.3 -0.4 -4.0 20.0 -8.0 0.0
6 -241.6 14.3 4.3 4.7 0.0 -1.0 -114.8 0.0
7 -268.4 11.3 10.7 7.0 8.0 6.0 16.2 4.0
8 -317.0 20.4 16.2 19.6 0.0 -10.0 -38.3 16.0
9 -149.1 21.0 9.9 9.8 0.0 -19.0 -65.8 0.0
10 -201.5 12.7 -4.3 1.1 0.0 24.0 9.0 4.0
11 -198.2 -24.0 -13.4 -15.6 -4.0 19.0 -5.9 -16.0

combined-light

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Visible dashboard pixels 1162.7 [1134.8, 1231.6] 958.7 [949.4, 970.0] -220.1 11 yes no
Iframe inserted 530.6 [527.3, 542.8] 537.8 [531.1, 549.9] 6.9 4 no no
Hello handled 744.9 [741.0, 748.0] 751.3 [743.9, 765.8] 6.2 5 no no
Connect sent 467.6 [461.5, 470.3] 472.7 [467.4, 490.3] 18.7 3 no no
FCP 256.0 [252.0, 256.0] 256.0 [252.0, 256.0] 4.0 3 no no
LoAF blocking 154.0 [143.0, 175.0] 157.0 [150.5, 179.5] 12.0 5 no no
Chat catch-up 1156.6 [1147.6, 1179.3] 1169.7 [1148.5, 1214.1] 14.7 4 no no
First transcript paint 488.0 [488.0, 494.0] 496.0 [490.0, 506.0] 8.0 3 no no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -300.9 -188.8 -32.6 21.1 -100.0 -108.0 -95.2 -184.0
2 -164.0 25.7 24.6 27.1 4.0 18.0 69.6 36.0
3 -132.3 35.5 30.4 29.7 -4.0 63.0 58.4 32.0
4 -220.1 6.9 -0.5 0.9 8.0 -3.0 -22.8 -8.0
5 -265.0 -75.6 -9.9 -11.8 0.0 -12.0 14.7 -4.0
6 -307.1 -7.3 -4.1 -4.5 4.0 -49.0 -25.6 4.0
7 -431.1 22.5 18.1 18.7 4.0 12.0 84.9 16.0
8 -223.9 -17.0 -10.6 -9.8 -16.0 -29.0 -48.2 0.0
9 -174.2 6.0 6.2 5.1 4.0 17.0 13.1 8.0
10 -131.7 62.8 47.6 48.7 4.0 62.0 57.7 56.0
11 -163.8 27.2 51.1 45.2 0.0 43.0 82.4 12.0

reveal-chat

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Hello handled 712.0 [709.1, 716.8] 707.3 [701.5, 715.3] -4.8 8 no no
Connect sent 439.4 [436.1, 443.0] 432.2 [430.0, 443.0] -3.4 7 no no
FCP 244.0 [244.0, 248.0] 248.0 [244.0, 248.0] 0.0 3 no no
LoAF blocking 120.0 [115.0, 128.0] 121.0 [113.0, 125.5] -5.0 7 no no
Chat catch-up 1066.6 [1056.1, 1076.6] 1058.2 [1044.0, 1062.3] -10.7 6 no no
First transcript paint 480.0 [476.0, 482.0] 472.0 [470.0, 482.0] -4.0 7 no no
Pair Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -2.0 0.4 0.0 -27.0 -29.6 0.0
2 -26.4 -24.4 0.0 -10.0 -36.2 -24.0
3 10.9 9.8 -4.0 32.0 22.4 12.0
4 4.1 3.4 -4.0 -5.0 14.2 0.0
5 -10.3 -8.1 0.0 -8.0 -39.3 -8.0
6 -5.2 -4.7 4.0 5.0 -90.1 -4.0
7 1.9 1.6 8.0 24.0 -10.7 4.0
8 -6.3 -9.8 -12.0 -18.0 11.9 -8.0
9 -4.8 -3.4 4.0 -4.0 2.9 -4.0
10 -8.0 -6.5 4.0 -6.0 5.9 -8.0
11 -1.4 -1.0 0.0 8.0 -13.4 -4.0

reveal-dark

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Visible dashboard pixels 1269.0 [1196.1, 1292.8] 949.5 [944.1, 961.3] -278.6 11 yes no
Iframe inserted 567.8 [536.1, 581.4] 541.4 [533.8, 547.5] -7.6 7 no no
Hello handled 763.7 [747.7, 779.3] 752.0 [741.8, 759.9] -6.4 8 no no
Connect sent 489.4 [469.0, 500.9] 477.4 [465.6, 481.5] -1.4 7 no no
FCP 256.0 [252.0, 260.0] 256.0 [256.0, 258.0] 0.0 4 no no
LoAF blocking 178.0 [166.5, 204.0] 159.0 [151.5, 173.5] -13.0 7 no no
Chat catch-up 1203.1 [1192.7, 1211.5] 1156.5 [1140.8, 1181.7] -41.8 9 yes no
First transcript paint 520.0 [492.0, 536.0] 504.0 [490.0, 508.0] -4.0 6 no no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -568.9 -256.9 -2.0 14.0 -104.0 -117.0 -84.9 -204.0
2 -196.6 4.7 4.6 6.6 -4.0 -25.0 -39.9 12.0
3 -205.3 -7.6 -3.0 -8.3 4.0 3.0 2.7 -16.0
4 -341.3 29.4 27.5 25.3 16.0 19.0 27.4 28.0
5 -343.3 -45.8 -45.1 -44.2 4.0 -62.0 -83.9 -44.0
6 -217.4 -52.8 -40.2 -41.4 -8.0 -36.0 -26.8 -44.0
7 -393.7 -40.2 -28.4 -27.6 4.0 -33.0 -41.8 -32.0
8 -242.1 -23.3 -17.1 -16.1 -4.0 0.0 -43.7 -4.0
9 -268.1 34.8 14.0 15.5 20.0 3.0 -90.2 16.0
10 -278.6 -1.4 -6.4 -1.4 0.0 -13.0 -3.5 0.0
11 -367.9 4.1 -9.3 -1.1 0.0 -5.0 -85.0 0.0

reveal-light

11 interleaved pairs; milliseconds; brackets are IQR. Delta = candidate − baseline.

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Visible dashboard pixels 1194.8 [1156.0, 1253.2] 964.6 [944.7, 978.9] -233.0 11 yes no
Iframe inserted 548.3 [541.5, 564.8] 535.9 [530.0, 547.3] -4.0 7 no no
Hello handled 758.1 [750.8, 765.7] 747.6 [746.0, 766.8] -2.8 6 no no
Connect sent 479.7 [472.6, 483.8] 472.1 [467.7, 488.6] -0.3 6 no no
FCP 256.0 [254.0, 258.0] 252.0 [246.0, 258.0] 0.0 5 no no
LoAF blocking 161.0 [154.0, 173.0] 158.0 [147.5, 173.5] 7.0 4 no no
Chat catch-up 1173.1 [1157.9, 1183.2] 1168.5 [1139.2, 1184.4] -22.9 6 no no
First transcript paint 508.0 [500.0, 508.0] 492.0 [488.0, 510.0] 0.0 5 no no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -584.1 -354.3 -53.3 4.0 -112.0 -183.0 -134.3 -224.0
2 -201.8 14.3 12.0 12.1 4.0 14.0 -22.9 20.0
3 -208.0 -29.9 -23.5 -27.5 -16.0 -2.0 -26.1 -32.0
4 -233.0 45.8 28.4 31.2 4.0 22.0 37.0 24.0
5 -214.6 -45.0 -2.8 -2.5 0.0 -28.0 39.7 -16.0
6 -240.3 -16.8 -18.7 -18.8 0.0 3.0 -29.2 -16.0
7 -300.5 7.2 12.2 13.9 -12.0 14.0 55.5 20.0
8 -235.8 -56.6 -18.4 -23.3 -12.0 -33.0 -27.0 -48.0
9 -167.5 -1.6 0.0 -0.3 -8.0 7.0 20.4 4.0
10 -315.2 44.8 33.1 39.5 8.0 23.0 26.3 40.0
11 -220.0 -4.0 -3.9 -1.1 0.0 13.0 -56.4 0.0

@clawsweeper

clawsweeper Bot commented Oct 20, 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 20, 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-20T20:33:35.292357Z 675e0c8 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.

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 675e0c8ad638a22569c5eb02f7d64b805c3eaafc
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/sandbox-host.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets themed dashboard frames paint during loading while keeping them inert until ready.

Example: Reload the synthetic dashboard in dark mode.

  • Before: At 1059 ms, the baseline still shows loading placeholders.
  • After: At 1058 ms, the candidate shows themed charts while readiness still controls interaction.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused implementation, strong visual evidence, distinct browser regressions, and no remaining actionable finding; readiness remains subject to the separate CI gate and merge pause.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected light/dark browser screenshots demonstrate earlier themed chart painting in the production Control UI composition; the complete body supplies paired compositor measurements, a first-theme negative control, and final-head fullscreen, A2UI, and full UI results.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Drawable dashboard content remains hidden while the host processes reload work, and early exposure can flash the wrong browser canvas theme.
Reason: The maintainer-authored direction has measured visual benefit, retains existing authority and recovery contracts, and introduces no configuration or persisted state.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR delivers a measured dashboard loading improvement and resolves the earlier fullscreen finding; the red CI gate and recorded merge pause remain.

Priority: P2
Reviewed head: 675e0c8ad638a22569c5eb02f7d64b805c3eaafc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI frame owner embeds the isolated sandbox shell, supplies widget documents and theme updates, and enables interaction after the current document reports readiness.

flowchart TD
  A[Dashboard view] --> B[Board frame owner]
  B --> C[Themed sandbox shell]
  C --> D[Isolated widget document]
  E[Theme publisher] --> B
  E --> C
  D --> F[Current render receipt]
  F --> B
Loading

Technical review

Best possible solution:

Retain the synchronous theme seed and separate painting from interaction readiness through the existing frame and sandbox owners.

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

Current main hides frames until host readiness and delayed reveal; supplied browser comparisons demonstrate the resulting visible wait, without a new execution during this read-only review.

Is this the best way to solve the issue?

The patch addresses the wait at its existing presentation owner, initializes the shell before painting, preserves interaction readiness, and removes the superseded reveal callbacks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Dashboard delayed reveal changes intended behavior with a stated reason (177a1e3: Hide unfinished frames and reveal after sizing to prevent white flashes and layout jumps.)
  • Whole-board loading cover changes intended behavior with a stated reason (56e7dba: Keep one consistent loading surface through board metadata and HTML-document readiness.)
  • Shared sandbox theme transparency keeps the original intent (06120a1: Match the proxy color scheme to its embedding host so Chromium does not paint an opaque canvas.)
  • Frame-owned theme registration keeps the original intent (f6e1367: Deliver theme updates through explicit mounted-frame registration with owner-managed cleanup.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +11, Tests +145. Total +156 across 10 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 48 37 +11
Tests 6 152 7 +145
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 200 44 +156

Review metrics

Metric Value Why it matters
Production versus test LOC Production +48/-37; tests +152/-7 Small runtime growth preserves navigation-stable theme seeding while deleting delayed-reveal machinery; tests cover initial theme, navigation stability, and readiness.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, 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 dashboard loading and visual-presentation improvement with measured user-visible benefit.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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-20T20:13:51.499Z sha ad649d6abc01ce2a18ebb9ffab4d6b64e15d8b91 :: needs changes before merge. :: [P2] Update fullscreen coverage for painting before readiness

Reviewed October 20, 2026, 8:47 PM ET / October 21, 2026, 00:47 UTC (Revision 2).

@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-no-flash branch from ad649d6 to 675e0c8 Compare October 20, 2026 20:29
@steipete

Copy link
Copy Markdown
Contributor Author

The fullscreen finding is fixed in 675e0c8ad638a22569c5eb02f7d64b805c3eaafc: pending frames are expected to paint at opacity 1 while remaining inert, and fullscreen/A2UI readiness helpers wait for inert removal before interaction. Focused fullscreen (9 tests) and A2UI (6 tests) pass; the exact-head full UI e2e run passes 838 files / 3,617 tests, with 4 opt-in files skipped. Independent review is clean through P2.

The body now includes the final proof and the remaining CI failures. The two menu failures did not reproduce in either the original CI merge/shard replay or current main; they are not claimed repaired, and the original GitHub run remains red. No merge has been requested.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 21, 2026
@steipete
steipete merged commit 017a4ed into main Oct 21, 2026
142 of 148 checks passed
@steipete
steipete deleted the steipete/coldload-dashboard-reveal-no-flash branch October 21, 2026 03:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…openclaw#178740)

The dashboard's MCP app stayed hidden until the host page processed the app's ready message and revealed the sandbox iframe after two animation frames; on a reload that message waits behind the host's boot work (~1.05 s), although the cross-origin frame paints in its own process. Show the frame transparently over its placeholder from insertion, and give the sandbox shell the host theme in its URL fragment so its inline head script sets color-scheme before first paint; the embedding iframe's color-scheme follows the theme too, so the browser never paints an opaque canvas (the cause of white flashes).

Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,194.8 -> 964.6 ms (-233.0 paired, 11/11), dark 1,269.0 -> 949.5 ms (-278.6 paired, 11/11); 0/11 white or opaque flashes in each theme; secondary metrics within the no-regression rule; error/stale/needs-approval presentation unchanged.

Runtime +11 LOC. Full UI 838 files / 3,617 tests. Exact-head reds are unrelated: checks-fast-baseline-ratchets (mock-exports flags src/commands/doctor-database-network-storage.test.ts from the merge base), and checks-ui shards failing chat-composer-plus-menu-loading and menu-surface submenu-highlight tests that pass on replay of the original source, shard and main.
steipete added a commit that referenced this pull request Oct 21, 2026
…ticket (#179058)

A warm-restored dashboard attaches its sandbox iframe before hello (#178658) and shows the frame as soon as the app paints (#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request.

Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule.

Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by #179052); exact-head CI green.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…ticket (openclaw#179058)

A warm-restored dashboard attaches its sandbox iframe before hello (openclaw#178658) and shows the frame as soon as the app paints (openclaw#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request.

Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule.

Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by openclaw#179052); exact-head CI green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docker Docker and sandbox tooling 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. security-sensitive-changed size: M 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