Skip to content

fix(control-ui): restore dashboards independently of transcript validation - #178658

Merged
steipete merged 8 commits into
mainfrom
steipete/coldload-dashboard-reveal-off-main-thread
Oct 21, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/coldload-dashboard-reveal-off-main-thread

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A warm dashboard reload can miss its early restore because the persisted board waits for a lazily loaded transcript-validator chunk. In the campaign's signed-in deep-link evidence, the dashboard appeared last in a 14-state reload sequence. This corrects the warm-restore dependency on the lazy validator in #178113.

Release the already validated board envelope before loading the transcript validator, and schedule its restoration after initial connection dispatch. Both the early envelope and full-cache path use that ordering. Shape validation, session/scope checks, grant filtering, ticket TTL aging, and authoritative board.get reconciliation remain in their existing owners. Transcript hydration retains its existing timing and lifetime. The prior hydration method moves into its own cohesive pane module to stay within the source-file size limit; its old definition is deleted.

Evidence

11 interleaved pairs per scenario on one quiet AWS Crabbox c7a.4xlarge, lease cbx_3c617a884495, run. Repository Playwright Chromium; synthetic Team-scale dashboard, rotating tickets and separate sandbox origin. Connect floor 350 ms, connect latency 240 ms, board.get 160 ms, other RPCs 35 ms. Measurements use final head 0fc10392fc87c34b42cf98bd38377af0858949f2; the baseline replaces only the four existing restore runtime owners from merge-base 65f3ca05d794. Both bundles share all other source, dependencies, fixtures, and the sandbox server. The new hydration module is unreferenced by the baseline history owner. No private captures or real account data are included.

Held-validator primary Baseline median [IQR] Candidate median [IQR] Median paired delta Better
Iframe insertion 808.8 [807.5, 817.7] ms 359.3 [356.2, 359.7] ms −450.7 ms 11/11

All 11 candidates insert exactly one iframe before hello while the validator is delayed 800 ms. Hello's paired median is +8.1 ms with overlapping IQRs, below the declared 3% threshold; FCP is unchanged and chat catch-up improves 89.7 ms. Ordinary warm-cache, fast-validator and chat-route controls pass the no-regression gate. Fast-validator LoAF blocking rises 10.0 ms paired with overlapping IQRs and mixed signs (8/11 worse), retained in the tables below.

Predeclared primary: at least 9/11 better with negative median paired delta. Secondary regression: worse non-overlapping IQRs, or at least 9/11 worse pairs with median paired rise above max(10 ms, 3%). No pair was dropped.

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 800 --untraced

The ordinary dashboard control omits --history-validator-delay-ms; the fast-validator control sets it to 1. The chat control uses --face chat --untraced without --chat-dashboard-route or a validator delay.

Validation

Final head: 0fc10392fc87c34b42cf98bd38377af0858949f2, rebased onto 65f3ca05d794f8cc26ad15fcc16860028fe7467a. Independent review is clean through P2; the exact-head automated code review also has no findings. Exact-head CI is green. This PR remains unmerged for lead review.

Final-head full UI e2e passed on AWS c7a.4xlarge, lease cbx_3c617a884495, run: 837 files / 3,617 tests passed; 4 files / 4 tests skipped. Command wall: 6,216 s; Vitest: 6,095.44 s. The four opt-in skips are desktop-resize, peer-followup-restart, chat-steer-deferred-custody, and deepseek-search real-Gateway e2e. Both dashboard-before-hello regressions and all six plugin-skills cases pass within this full run. Focused owners also pass 6 files / 92 tests (23 s); plugin-skills passes separately (35 s command / 31.50 s Vitest). Changed-file lint, UI/script types, and all core test type graphs pass. Runtime hashes match before and after the comparisons, and tracked source stayed unchanged.

The full run on the preceding head exposed a detached-element sampling race in the installed plugin description clamp assertion. Diagnostics showed a connected, correctly clamped row at 1440 px, then a detached sampled handle with zero geometry at 390 px. The repaired assertion queries the current DOM and measures it synchronously inside page.evaluate; the exact one-row, clamp, overflow, text, and screenshot requirements remain. No retry, longer timeout, or weaker expectation was added. That failure was not classified as inherited: the unchanged test passed on the original base and a later main snapshot.

The held-validator regression fails on the old restoration path, and a separate full-cache negative control catches bypassing connect-dispatch ordering. Shape validation, session/scope checks, grants, ticket aging, and board.get authority retain their owner coverage. pnpm test <file> --maxWorkers=1 walls on the unchanged runtime contracts: gateway connect 3.90 s; dashboard cold load 61.64 s; snapshot custody 9.98 s; board loading 5.88 s; snapshot store 4.42 s. Browser command times include production build/setup; these files exercise real layout and held-network boundaries that unit fixtures cannot establish.

The composite remote payload exited 1 because check-changed reported the three repository-wide guards below; the full UI suite itself exited 0. All three reproduce on the unchanged main base 65f3ca05d794f8cc26ad15fcc16860028fe7467a, on fresh AWS lease cbx_c8c48e3ca452, comparison run. The max-lines failure also reproduces with that base compared to itself. No exception or baseline was changed.

Guard Matching main-base failure
Max-lines suppressions ui/src/pages/chat/components/chat-message.test.tsx, ui/src/pages/config/config-page-state.ts, ui/src/pages/sessions/sessions-page-state.ts
Core test-shard root budgets agents-tools 722, gateway-root 725, infra 728, plugins-platform 728; limit 720. This PR adds no test roots or changes to those configurations.
Unused exports Production: src/plugins/registry-runtime.ts: PluginRuntimeResolver, src/transcripts/capture.ts: TranscriptsLogger. Full-tree scan also reports extensions/github/src/preview.test-support.ts: conditionalJson. All are unchanged by this PR.

The failing guard signatures, passing type/lint checks, and full UI results are retained separately. Both remote source checkouts stayed clean.

Scope and Release Note

Runtime +133/−98, net +35 LOC. The requested exclusion filter reports +468/−179, net +289, including the committed benchmark/fixture extensions and .test.tsx regression. Growth preserves initial-dispatch lifecycle and cached-board ordering; the superseded hydration method and moved helper definitions are deleted. No new configuration option or durable Gateway schema change.

Release-note context: cached dashboards can attach while transcript validation is pending, without delaying the live handshake under the measured latency profile. The independent early-reveal/theme fix is #178740.

All restore medians, IQRs, and per-pair deltas

restore-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 703.7 [694.6, 708.2] 699.6 [689.1, 703.4] 1.4 5 no no
Connect sent 429.5 [420.8, 435.6] 427.6 [417.2, 431.4] 0.7 4 no no
FCP 244.0 [234.0, 244.0] 244.0 [234.0, 248.0] 0.0 5 no no
LoAF blocking 178.0 [173.5, 188.0] 165.0 [161.5, 172.0] -9.0 10 yes no
Chat catch-up 1064.9 [1054.8, 1083.8] 1045.2 [1039.3, 1060.0] -19.8 8 no no
First transcript paint 476.0 [470.0, 482.0] 472.0 [462.0, 480.0] -4.0 7 no no
Pair Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -1.6 0.7 0.0 -26.0 -23.1 16.0
2 -24.3 -21.9 -8.0 -34.0 -55.5 -24.0
3 9.7 9.2 12.0 9.0 -5.2 8.0
4 -20.9 -21.6 -20.0 -33.0 -25.3 -16.0
5 -17.9 -14.7 -4.0 -10.0 -18.5 -24.0
6 2.2 4.8 16.0 -3.0 -25.6 0.0
7 6.0 0.6 -4.0 -7.0 9.5 -4.0
8 3.9 0.9 0.0 -6.0 -19.8 -4.0
9 1.4 1.3 -12.0 -1.0 -74.6 -8.0
10 6.2 6.2 16.0 -9.0 12.1 -4.0
11 -1.0 -1.1 4.0 -17.0 11.0 4.0

restore-delayed

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

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Iframe inserted 808.8 [807.5, 817.7] 359.3 [356.2, 359.7] -450.7 11 yes no
Hello handled 621.1 [619.3, 626.5] 629.5 [625.3, 631.0] 8.1 2 no no
Connect sent 355.4 [353.4, 359.6] 362.1 [357.7, 363.5] 6.7 3 no no
FCP 248.0 [236.0, 248.0] 248.0 [240.0, 250.0] 0.0 3 no no
LoAF blocking 115.0 [112.0, 121.5] 110.0 [105.0, 116.5] -2.0 6 no no
Chat catch-up 1415.5 [1407.1, 1429.6] 1324.9 [1318.1, 1329.2] -89.7 11 yes no
First transcript paint 1340.0 [1326.0, 1354.0] 1244.0 [1244.0, 1256.0] -84.0 11 yes no
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -571.0 -103.6 -91.1 -96.0 -114.0 -279.2 -252.0
2 -443.1 9.0 8.0 4.0 -16.0 -88.2 -80.0
3 -454.0 12.2 10.9 12.0 -16.0 -109.6 -104.0
4 -454.7 2.4 2.5 0.0 3.0 -104.8 -104.0
5 -444.0 13.7 11.0 16.0 10.0 -31.1 -4.0
6 -437.3 19.2 17.0 0.0 -2.0 -84.9 -84.0
7 -459.6 -4.3 -2.4 -20.0 6.0 -56.0 -52.0
8 -448.5 10.8 8.3 20.0 2.0 -89.7 -100.0
9 -450.7 8.1 6.7 4.0 -28.0 -72.1 -48.0
10 -445.0 3.4 0.6 0.0 12.0 -92.8 -84.0
11 -464.6 2.7 -0.4 -4.0 -14.0 -109.7 -108.0

restore-normal

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

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Iframe inserted 539.8 [532.6, 545.2] 536.4 [529.0, 543.4] -2.2 7 no no
Hello handled 737.3 [734.0, 745.9] 740.3 [729.9, 745.1] -4.9 6 no no
Connect sent 460.9 [459.3, 468.0] 463.3 [454.5, 466.8] -2.5 6 no no
FCP 240.0 [234.0, 244.0] 240.0 [238.0, 246.0] 0.0 3 no no
LoAF blocking 210.0 [198.0, 215.0] 203.0 [198.5, 211.5] -3.0 6 no no
Chat catch-up 1165.6 [1152.0, 1191.0] 1151.0 [1129.6, 1188.5] -10.8 7 no no
First transcript paint 472.0 [464.0, 474.0] 468.0 [458.0, 476.0] -4.0 6 no no
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -180.4 -186.9 -169.6 -88.0 -126.0 -247.1 -156.0
2 -6.9 -6.4 -6.5 12.0 1.0 -27.5 -4.0
3 24.9 21.6 16.5 -12.0 11.0 130.2 24.0
4 -32.1 -19.9 -20.7 0.0 -7.0 -42.8 -16.0
5 5.0 8.2 7.1 0.0 -12.0 60.8 0.0
6 1.3 7.1 4.5 4.0 -3.0 17.6 -8.0
7 -17.1 -14.6 -11.7 4.0 -41.0 -62.5 -12.0
8 -3.4 4.4 2.4 8.0 -13.0 -82.4 8.0
9 -2.2 -4.9 -3.5 0.0 11.0 -4.7 -16.0
10 25.7 16.7 16.8 16.0 6.0 51.0 16.0
11 -1.9 -6.6 -2.5 -20.0 30.0 -10.8 0.0

restore-receipt-fast

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

Metric Baseline Candidate Median paired delta Better / 11 Paired improvement gate Secondary regression
Iframe inserted 541.8 [535.0, 549.6] 546.2 [535.1, 547.7] -5.7 6 no no
Hello handled 745.8 [744.7, 756.8] 755.8 [748.8, 757.6] 1.7 5 no no
Connect sent 468.6 [466.7, 476.3] 478.2 [471.2, 480.8] 2.0 5 no no
FCP 244.0 [240.0, 248.0] 240.0 [238.0, 248.0] 0.0 5 no no
LoAF blocking 153.0 [149.5, 161.5] 163.0 [156.5, 171.5] 10.0 3 no no
Chat catch-up 1164.9 [1162.4, 1184.8] 1148.3 [1135.8, 1164.6] -3.8 7 no no
First transcript paint 492.0 [480.0, 496.0] 488.0 [488.0, 494.0] 0.0 5 no no
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -158.2 -10.3 40.6 -96.0 -76.0 -1.6 -160.0
2 -19.6 -11.0 -11.5 4.0 -10.0 -43.4 -12.0
3 16.1 15.0 11.2 8.0 41.0 13.7 4.0
4 -13.4 -7.1 -5.7 4.0 9.0 4.6 0.0
5 14.0 9.3 12.3 0.0 10.0 4.7 4.0
6 -5.7 1.7 -0.9 -4.0 2.0 -3.8 -4.0
7 -7.5 2.2 -0.1 4.0 11.0 -37.7 4.0
8 2.8 -1.4 2.0 -8.0 16.0 8.0 -8.0
9 -14.4 -9.1 -8.0 -4.0 -19.0 -49.5 -4.0
10 22.2 15.9 15.4 -8.0 10.0 -12.5 4.0
11 22.2 19.1 22.8 8.0 27.0 -46.1 24.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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling size: XL labels Oct 20, 2026
@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-off-main-thread branch from a1cb7d8 to 8da6fc0 Compare October 20, 2026 18:54
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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 separates cached dashboard restoration from transcript validation and seeds sandbox themes to allow earlier frame painting.

Example: Reload a saved dashboard while its history-validator download is delayed by 800 ms.

  • Before: Dashboard restoration waits for transcript validation, and frame reveal waits for host readiness handling.
  • After: Dashboard restoration can proceed after connect dispatch while validation continues, and themed frame pixels can appear before interaction is enabled.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The owner-preserving patch has no identified correctness defect, but its experimental benefit and visual stability are not yet established for this head.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored experiment is outside the ordinary contributor proof gate; its body reports focused tests but leaves exact-head performance comparisons and sanitized visual evidence pending, and the linked ongoing run could not be inspected.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Returning users wait for dashboard content while unrelated transcript validation and host readiness handling complete.
Reason: Removing the dependency has clear user value, and the maintainer author has approved the experimental direction while explicitly withholding merge readiness.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open under its explicit experiment hold; current main retains the reported dependency, and no definite introduced code defect was found.

Priority: P2
Reviewed head: 8da6fc0d5f050fc619861564a106c4a06829706a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Current-head baseline/candidate comparisons, inspected light/dark compositor captures, and completion of the declared browser and validation gates remain pending in the supplied evidence.
Agent review details

How this fits together

The Control UI reads scoped browser snapshots, restores boards through the existing provider, validates transcript receipts separately, and renders ticket-bound documents through the shared sandbox.

flowchart TD
  A[Dashboard reload] --> B[Scoped snapshot reader]
  B --> C[Transcript validation]
  B --> D[Connect dispatch barrier]
  D --> E[Existing board provider]
  F[Live Gateway] --> E
  E --> G[Themed sandbox frame]
  C --> H[Transcript adoption]
Loading

Technical review

Best possible solution:

Restore dashboards through the existing scoped reader and board provider, retaining the earlier-paint strategy only if the declared performance and visual gates pass.

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

Current-main source directly shows cached board restoration waiting for the lazy transcript validator; the reported browser regression was not independently executed during this read-only review.

Is this the best way to solve the issue?

The restoration change reuses existing admission and lifecycle owners, and the theme seed addresses the documented opaque-canvas cause; the extracted hydration module replaces the previous implementation without introducing another store or authority owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +46, Tests +344, Docs +3, Other +180. Total +573 across 23 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 9 181 135 +46
Tests 11 376 32 +344
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 2 246 66 +180
Total 23 806 233 +573

Review metrics

Metric Value Why it matters
Benchmark options 4 new benchmark flags; no application configuration option Filmstrip capture, validator delay, paint markers and color scheme support the declared comparisons without changing persisted user settings.

Labels

Label changes:

  • add P2: This targets dashboard reload latency and visual stability without evidence of an urgent broken user workflow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This targets dashboard reload latency and visual stability without evidence of an urgent broken user workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Publish the current-head comparison results and sanitized light/dark compositor evidence against the predeclared gates.

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.

Reviewed October 20, 2026, 3:16 PM ET / 19:16 UTC.

@steipete
steipete marked this pull request as ready for review October 20, 2026 19:27
@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-21T00:53:26.201306Z 0fc1039 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 guard cleared

Current revision: 0fc10392fc87c34b42cf98bd38377af0858949f2

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

@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: 8da6fc0d5f

ℹ️ 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/styles/board.css Outdated
@@ -346,7 +345,14 @@ openclaw-board-widget-cell {
min-height: 0;
}

.board-view--loading .board-widget__frame-pane > .board-widget__frame {
z-index: 3;

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.

P2 Badge Raise the loading grid above the skeleton overlay

When initial dashboard loading is active, this z-index: 3 cannot place the iframe above openclaw-panel-loading-skeleton[overlay] (which has z-index: 2), because the iframe's .board-grid ancestor uses container-type: inline-size, establishing a separate stacking context at the default stack level. The overlay therefore continues to cover early iframe paints until view().loading clears, defeating the intended progressive reveal; raise or restructure the owning stacking context rather than only the descendant iframe.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This presentation change is now isolated in #178740. I checked its exact CSS in the repository's Playwright Chromium (156.0.8078.4): the container-type: inline-size grid and widget do not prevent the iframe at z-index: 3 from painting above the sibling skeleton at z-index: 2. The screenshot shows the unobscured synthetic frame, and a hit-test after removing only pointer/inert exclusions selects the iframe. Adding explicit contain: layout is a positive failure control: it makes the same skeleton cover the frame. The full dashboard compositor filmstrips also show the chart before host readiness. No CSS change is warranted for this finding on the tested browser.

@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-off-main-thread branch from 8da6fc0 to eace012 Compare October 20, 2026 19:54
@steipete steipete changed the title experiment(control-ui): deterministic dashboard restore and themed reveal [do not merge] fix(control-ui): restore dashboards independently of transcript validation Oct 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: L and removed docker Docker and sandbox tooling agents Agent runtime and tooling size: XL labels Oct 20, 2026
@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-off-main-thread branch from eace012 to 0fc1039 Compare October 21, 2026 00:49
@steipete

Copy link
Copy Markdown
Contributor Author

Final proof is current for 0fc10392fc87c34b42cf98bd38377af0858949f2: exact-head CI is green; the full UI suite passes 837 files / 3,617 tests, with four documented opt-in skips. The refreshed 11-pair comparison improves held-validator iframe insertion by a median paired 450.7 ms, with no secondary regression under the declared rule.

The detached-handle clamp assertion is repaired without retries or weaker expectations. The three auxiliary repository guard failures reproduce on the unchanged main base; matching signatures and lease results are in the body. Independent review and the exact-head code review have no actionable findings through P2. The reveal change is separate in #178740. Both PRs remain unmerged for lead review.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit 67c264f into main Oct 21, 2026
119 of 120 checks passed
@steipete
steipete deleted the steipete/coldload-dashboard-reveal-off-main-thread branch October 21, 2026 03:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…ript validation (openclaw#178658)

L158 (openclaw#178113) restores a cached dashboard before hello, but the restore waited on the lazily loaded transcript validator, so on Team the sandbox iframe often attached only after board.get returned (live r173: 776-797 ms in one batch, 505-633 ms in another). Restore the board snapshot independently of transcript validation, after the WebSocket connect request has been sent (a new initialConnectSent signal) so the early dashboard render never lands in the hello-handling window; re-read the cache after that wait and keep every openclaw#178113 safety rule (shape validation, session match, pending/rejected grant filter, ticket TTL aging, board.get authority).

Evidence (AWS c7a.4xlarge, 11 pairs, synthetic dashboard fixture with the transcript validator held): sandbox iframe insertion 808.8 -> 359.3 ms (-450.7 paired, 11/11); hello handling +8.1 ms paired with overlapping IQRs (within the no-regression rule); FCP, LoAF, chat catch-up and chat-route controls unchanged.

Runtime +35 LOC. Full UI 837 files / 3,617 tests (4 opt-in skips); focused tests incl. a held-validator negative control that fails on the original restore; exact-head CI green.
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

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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