Skip to content

experiment(control-ui): complete cached Details in first pane [do not merge] - #189711

Closed
steipete wants to merge 2 commits into
mainfrom
steipete/coldload-details-first-pane
Closed

steipete wants to merge 2 commits into
mainfrom
steipete/coldload-details-first-pane

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A signed-in reload of a dashboard deep link can restore the conversation while Details is still empty, then populate and repaint it. The campaign evidence recorded placeholder, populated, and final-style stages around 729–1045 ms, 1345 ms, and 1595 ms. No private captures or conversation content are attached here.

Stopped experiment. Do not land. This candidate fixes the empty desktop composition admission and cached progress-runtime swap, but fails the declared performance gate and retains a later Details repaint.

Why This Change Was Made

The existing cached Details admission suppressed its loading fallback without resolving the desktop lazy renderer. The empty generic surface is exactly 34px: 16px padding on both sides plus two 1px borders. When the desktop body arrives, its structural selector activates the final layout and typography variables. Route preparation now preloads that same lazy boundary alongside the route entry, then joins both before mounting the cached pane.

The saved progress card also lacked its display-runtime facts. Recomputing those from disconnected/partial live state changed activity and step presentation during reload. The existing scoped Details snapshot now retains matching revision/updatedAt and display inputs until live owners settle. Optional child-read failure is published by the existing roster owner so fresh parent facts can replace cached running activity. The duplicated own-parent/hydration predicate was removed. Cold retains its lazy/shimmer contract. No new store, server schema, protocol, product configuration, or cached action authority.

Subagent and automation receipts already survived their independent live readiness/access gates. They were not the cause of the whole-panel empty box. The desktop stylesheet is a static dependency of the composition; current evidence does not establish late CSS arrival after populated DOM.

User Impact

The native regression restores complete cached Details content with the first pane and retains the same semantic/geometry presentation through an unchanged reconnect. It also adopts changed live progress and a finished parent when child reads are denied.

The real-Gateway compositor campaign still records one later Details regional change in every candidate chat run. In the inspected first run, the content is already present, then glyph rendering changes. A fixed progress-text crop changes from 0 to 2,478 pixels with RGB channel spread greater than 25; this supports a glyph-rendering repaint, but does not identify its browser/font/layout cause. The historical final restyle is therefore not claimed solved. More work before the first paint also produces an unacceptable long-frame tradeoff.

Proposed release-note context, if a successor lands: desktop Details and progress presentation restore with the cached conversation before in-place live refresh. This experiment is not a release or landing.

Evidence

Head 5fe3c86ad09bd87e06f88b6589e2cf0f0ac0ad60; baseline b021e8ec1979b1cb6410b6f159b3d187f221f1fa. One dedicated AWS c7a.4xlarge, lease cbx_b6a5a82abf4e, 16 CPUs, repo Playwright Chromium 156.0.8078.4, signed-in synthetic Gateway state, 3,000 retained sessions, 80 ms network shaping, 8 s observation windows. Eleven interleaved AB/BA pairs on each route, then eleven A/A pairs on the same box. A/A supplied the identical candidate index hash to both arms. CPU idle before capture: comparison 93.29%, A/A 93.31%.

Gate failure: chat LoAF blocking has separated worse IQRs and is worse in 11/11 pairs. Median paired rise is 89.4 ms, exceeding the largest absolute A/A delta of 72.6 ms. FCP/row-paint paired signals are also adverse, with noisier A/A spreads. Dashboard secondaries have overlapping IQRs and mixed signs. CLS is unchanged in median.

The primary is not established: the regional census has zero post-candidate Details changes in 0/11 candidate chat runs, with one later change each, 100–417 ms after the DOM-correlated app candidate. These boundaries are not an attestation of first visible app paint; representative first-app and subsequent PNGs were inspected, but a complete 11-run semantic paint audit was stopped after the adverse performance result. Baseline has one or two later regional changes per run. Dashboard was the non-regression route and did not have visible Details in this rig.

Snapshot Baseline Candidate Change
Chat target record 55,712 B 55,951 B +239 B / +0.43%; passes +2% limit
Dashboard target record 57,589 B 57,589 B 0%

Fixture limits: the current native capture still shows the default “My sessions” owner filter; the attempted preference replay did not reproduce the full requested operator profile. The 97 configured groups/102 section-order entries were not seeded, and targets are unarchived. This is a rejection on the reusable fixture, not proof of the exact operator matrix or the campaign exit criterion. The started Team-scale run was stopped and is not used as evidence.

Timing summary and controls

Candidate minus baseline; lower is better. Values are milliseconds except dimensionless CLS. Row paint is browser Element Timing; final rows is DOM settlement. App DOM candidates and inspected pixels remain distinct.

Route / metric Base median [Q1,Q3] Candidate median [Q1,Q3] Median paired delta Worse pairs A/A paired median [Q1,Q3]
chat / Hello handled 450.5 [418.4, 486.1] 195.0 [187.7, 205.5] -255.5 0/11 -11.6 [-20.5, 16.8]
chat / FCP 864.5 [828.1, 900.0] 941.2 [877.0, 968.1] 69.0 10/11 2.1 [-24.0, 55.6]
chat / First rows (Element Timing) 867.6 [829.4, 901.5] 943.5 [879.5, 971.5] 68.0 10/11 -0.0 [-24.1, 55.9]
chat / Final rows (DOM) 428.9 [400.9, 449.8] 488.2 [477.8, 495.6] 58.7 11/11 -13.3 [-37.7, 28.8]
chat / LoAF blocking 196.9 [179.7, 214.7] 286.1 [271.1, 291.2] 89.4 11/11 -25.7 [-50.6, 57.8]
chat / CLS 0.003508 [0.003508, 0.003833] 0.003508 [0.003508, 0.003508] 0.000000 2/11 0.000000 [0.000000, 0.000000]
dashboard / Hello handled 628.4 [604.3, 655.4] 618.1 [608.5, 628.1] 1.4 6/11 -9.9 [-43.6, 58.4]
dashboard / FCP 798.3 [769.1, 820.6] 795.7 [778.6, 812.9] -2.7 5/11 -5.9 [-30.9, 59.9]
dashboard / First rows (Element Timing) 799.5 [771.6, 823.4] 799.5 [781.5, 815.6] -3.9 5/11 -8.1 [-30.0, 62.0]
dashboard / Final rows (DOM) 403.5 [375.6, 426.9] 395.1 [388.3, 406.7] 4.8 6/11 -22.4 [-45.9, 56.1]
dashboard / LoAF blocking 227.1 [206.4, 249.0] 216.6 [206.2, 228.8] -4.9 5/11 -7.2 [-34.8, 26.0]
dashboard / CLS 0.002197 [0.002135, 0.002197] 0.002197 [0.002073, 0.002197] 0.000000 4/11 0.000000 [0.000000, 0.000062]

chat AB: every paired delta

Pair Hello handled FCP First rows Final rows LoAF CLS
1 -291.7 74.3 72.1 84.1 65.3 -0.000449
2 -202.1 94.1 96.1 49.2 92.6 0.000000
3 -197.7 69.0 68.0 58.7 115.9 0.000000
4 -277.7 118.7 120.1 96.6 72.2 -0.000325
5 -226.3 58.2 55.8 18.9 89.4 0.000000
6 -288.5 90.7 92.0 95.6 66.4 -0.000325
7 -255.5 136.1 136.0 127.1 106.7 -0.000449
8 -329.7 21.5 20.0 17.9 4.0 -0.000325
9 -209.1 38.0 36.0 73.1 148.9 0.000124
10 -323.4 57.5 60.0 21.8 21.8 0.000000
11 -219.9 -94.2 -92.1 45.6 118.9 0.000124

chat A/A: every paired delta

Pair Hello handled FCP First rows Final rows LoAF CLS
1 -0.1 61.4 59.8 -15.9 -25.7 -0.000125
2 -17.2 -4.5 -4.1 -13.3 -34.5 0.000000
3 35.2 81.1 79.9 66.1 60.4 0.000000
4 -21.0 2.1 -0.0 -51.7 -45.3 0.000000
5 15.0 77.4 75.9 20.1 55.1 0.000000
6 -38.2 -13.1 -16.0 -89.5 -70.7 -0.000124
7 23.0 -39.3 -39.9 28.3 64.9 0.000124
8 -20.0 40.5 40.0 -46.6 -65.4 0.000000
9 -207.2 -34.9 -32.2 29.4 72.6 0.000000
10 -11.6 -89.2 -91.9 -28.8 -55.9 0.000000
11 18.5 49.7 52.0 61.4 48.2 0.000124

dashboard AB: every paired delta

Pair Hello handled FCP First rows Final rows LoAF CLS
1 -112.3 -98.9 -100.1 -24.9 -22.2 0.000267
2 26.3 -2.7 -3.9 -11.0 33.3 -0.000124
3 32.4 28.2 28.0 36.3 13.0 0.000124
4 -29.9 -19.0 -19.8 -37.1 -32.6 -0.000124
5 29.5 54.5 56.0 27.0 25.7 0.000124
6 -85.5 -22.5 -20.0 245.3 -77.0 -0.000124
7 1.4 28.3 27.9 4.8 -4.9 0.000000
8 -19.9 -9.7 -7.8 10.5 -46.6 0.000000
9 31.6 -44.4 -44.1 -66.7 57.3 0.000000
10 -67.5 29.6 28.1 -68.9 -76.1 -0.000124
11 17.7 56.3 55.9 24.5 18.9 0.000124

dashboard A/A: every paired delta

Pair Hello handled FCP First rows Final rows LoAF CLS
1 -9.9 29.7 32.0 -8.2 -10.4 0.000125
2 -52.3 114.6 112.0 -46.3 -37.5 0.000000
3 54.4 114.0 115.9 51.2 54.6 0.000000
4 -60.2 -37.6 -39.9 -45.5 -33.9 0.000000
5 78.2 -27.3 -28.0 67.0 40.2 0.000124
6 -59.4 -13.8 -11.9 -47.6 -35.7 -0.000124
7 62.3 8.6 8.0 61.0 11.7 0.000124
8 -29.6 -34.5 -32.1 -34.5 -38.0 -0.000124
9 18.8 90.2 92.0 127.2 -7.2 0.000000
10 -34.9 -5.9 -8.1 -22.4 9.2 0.000000
11 90.9 -80.6 -80.0 -47.7 58.2 0.000000

Validation and cost

  • Final-head native two-route regression: 2/2 passed. Exact command pnpm test ui/src/e2e/chat-details-reload.e2e.test.ts --maxWorkers=1: 37.72 s wall (32.07 s Vitest duration). It uses real cache producer receipts and covers unchanged reconnect, changed live plan, and failed optional child reads with fresh parent facts. It does not prove compositor stability.
  • The original unchanged-code regression control failed on 3269c552c0b2; the pinned comparison baseline also visibly reproduces the empty Details box. The later scheduled exact-base test-file replay was not run after the stop decision.
  • Focused local owner checks: roster 26/26, Details arrival 7/7, snapshot cache 39/39. Formatting and diff checks passed. Independent review clean through P2; the accepted failed-child-read handoff finding was fixed and its focused native control fails without that fix.
  • Both builds and generated boot-manifest determinism passed. Both baseline and candidate exceed existing total CSS ceilings: raw is identically 1,601,371 B; gzip is 309,425 B baseline and 309,474 B candidate (+49 B). No ceilings were raised.
  • Changed-file checks, the full UI E2E suite, and ready-PR CI were not run after the performance stop. Draft UI CI was skipped; no green broad-proof claim. The runner interrupt retained an active remote child; completed immutable captures were copied before releasing the exact lease.
  • Lease cbx_b6a5a82abf4e released. Earlier cbx_940920cfea16 was released during checkout before measurements. No owned Gateway remains.

Production LOC and files

Requested stat (git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*'): +162/−31 = +131. UI runtime: +119; proof CLI: +8; generated manifest/test allocation: net +4. The positive growth is the typed progress display-input snapshot and the existing roster's settled-read fact. The cold placeholder remains by explicit contract.

Touched: route preparation; Details lazy boundary, Progress, Background and props; Details snapshot schema/owner; child-roster owner/projection/types; native regression and exact +235 test-line allocation (230 new +5 existing); generated boot manifest; Control UI docs; native rig --init-script replay option. No changelog edit.

Inspected synthetic visual evidence

These are original PNGs from the isolated real-Gateway fixture on the measured head/baseline. They contain synthetic data only. The times are DOM-correlated app candidates, not audited first-visible-paint assertions.

Baseline candidate at 968.5 ms: empty 34px Details surface.

Baseline synthetic reload with empty Details

Candidate app candidate at 1044.8 ms: populated cached Details.

Candidate synthetic reload with cached Details populated

Candidate at 1244.8 ms: later glyph repaint, with the same visible Details content.

Candidate later synthetic Details repaint

Open attribution for a successor

Reduce the work on the initial cached mount instead of moving the same work earlier. Separately identify the remaining glyph/compositor repaint while preserving the real browser paint behavior. The current captures do not support blaming a late font download or claiming the historical final restyle solved. Match the full grouping/owner/archived fixture before making an operator-profile claim.

@clawsweeper

clawsweeper Bot commented Oct 31, 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 size: M labels Oct 31, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
Prepare the existing desktop Details boundary before mounting a cached route and retain its progress presentation in the scoped browser snapshot until live reads settle. Failed optional child reads still yield to live parent activity. Cover native chat and dashboard reloads, unchanged reconnects, and changed live facts.
@steipete
steipete force-pushed the steipete/coldload-details-first-pane branch from 6d95daa to 5fe3c86 Compare October 31, 2026 19:55
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR prepares cached desktop Details before mounting chat and preserves its progress presentation until live reads settle.

Example: Reload a signed-in chat with Details open and a saved running task.

  • Before: The cached transcript appears before complete Details, and progress activity changes again during reconnect.
  • After: The candidate prepares complete cached Details with the pane, then replaces its presentation with live facts.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no definite introduced defect, but required visual and performance evidence is not yet available; the optional persisted progress field also lacks supplied upgrade compatibility proof.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: A warm chat reload shows the conversation before complete Details and changes progress presentation during reconnect.
Reason: The maintainer-directed experiment addresses a concrete remaining presentation problem using existing owners and states measurable acceptance criteria.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open as a focused maintainer experiment: current main still lacks first-pane Details restoration, and the explicit do-not-merge hold remains appropriate.

Priority: P2
Reviewed head: 5fe3c86ad09bd87e06f88b6589e2cf0f0ac0ad60

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply the declared real-Gateway chat/dashboard comparison and inspected before/after captures proving complete first-paint Details, stable reconnect, changed live values, and non-regression.
Agent review details

How this fits together

The Control UI restores scoped browser snapshots into chat panes; Details combines those display facts with live progress cards and child-session observations while existing owners retain action authority.

flowchart LR
  A[Scoped browser snapshot] --> B[Chat route preparation]
  B --> C[Cached chat pane]
  C --> D[Desktop Details renderer]
  E[Live progress owner] --> D
  F[Child roster owner] --> D
  D --> G[Display snapshot receipt]
  G --> A
Loading

Technical review

Best possible solution:

Retain the existing snapshot and live owners, and land first-pane restoration only if the declared experiment succeeds.

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

Current-main source leaves desktop Details lazy after route preparation and derives progress exclusively from arriving live facts; the body reports a red-before/green-after browser regression, which this read-only review did not execute.

Is this the best way to solve the issue?

The patch uses the existing route, renderer, scoped snapshot writer, and roster owner, with no demonstrated unnecessary production layer; measurements must establish whether moving Details preparation before pane mounting improves the complete reload.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Cached Details restoration keeps the original intent (dad7cbe: Restore bounded display projections through the existing disposable pane snapshot while retaining live authority; first-pane admission was explicitly deferred.)
  • Desktop Details lazy composition changes intended behavior with a stated reason (1894bb9: Provide responsive session headers and detail panels with the existing desktop composition boundary.)
  • Progress runtime presentation keeps the original intent (58b88a8: Keep durable checklist state separate from session outcomes and show delegated activity through the shared roster-derived runtime.)
  • Managed child-session reads keeps the original intent (7729235: Reuse managed child queries and parent observations, avoiding redundant reads while allowing independent failure recovery.)
  • Warm-reload proof tooling keeps the original intent (5df2f45: Provide repeatable isolated real-Gateway reload evidence rather than infer runtime performance from mock transport.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main comparison: The pinned introduced diff adds conditional Details preparation and cached progress presentation; the fetched main retains the original route loader and live-only progress inputs. (ui/src/pages/chat/route.ts:86, 5fe3c86ad09b)
  • Explicit experiment hold: The complete current body identifies this as an experiment, prohibits merging before its gates finish, and reports quiet-host measurements, broad validation, and exact-head CI as pending. (5fe3c86ad09b)
  • Existing restoration deliberately left first-pane admission open: The merged perf(control-ui): restore Details sections from pane cache #185242 explicitly accepted one later complete Details admission and left first-pane admission as follow-up work. (ui/src/pages/chat/chat-details-snapshot.ts:40, dad7cbe17463)
  • Meaningful browser regression with mocked transport: The added chat/dashboard regression compares every sampled cached-pane frame against the settled panel, then exercises reconnect, denied child reads, and changed live progress; it explicitly installs a mock Gateway. (ui/src/e2e/chat-details-reload.e2e.test.ts:64, 5fe3c86ad09b)
  • Existing cache ownership retained: Progress receipts use the existing snapshot writer, which checks connection epoch, client, session incarnation, snapshot key, and locale before recording display facts; cached runtime values do not replace action callbacks. (ui/src/pages/chat/chat-details-snapshot.ts:62, 5fe3c86ad09b)
  • Policy and checkout integrity: Read root and applicable UI, docs, and scripts guidance and applied simplification steps 1–3 without edits; no maintainer-notes directory or installed Solid cheatsheet was available, and final Git status remained clean. (AGENTS.md:1, 5fe3c86ad09b)

Likely related people:

  • Peter Steinberger: Raw commit dad7cbe adds ui/src/pages/chat/chat-details-snapshot.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dad7cbe17463; files: ui/src/pages/chat/chat-details-snapshot.ts)

PR surface

Source +120, Tests +235, Docs +2, Other +11. Total +368 across 16 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 11 151 31 +120
Tests 2 235 0 +235
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 2 11 0 +11
Total 16 399 31 +368

Review metrics

Metric Value Why it matters
Production versus test changes Runtime +144/-25 lines; tests +235/-0 lines Runtime growth extends existing presentation and readiness owners; tests cover first-pane stability on two route compositions and child-read failure recovery.
New tooling flag 1 repeatable flag: --init-script The local warm-reload proof rig can replay browser fixture initialization; this adds no product configuration setting.

Labels

Label changes:

  • add P2: Staged Details restoration affects warm-reload presentation with a limited blast radius and no demonstrated loss of core functionality.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: Staged Details restoration affects warm-reload presentation with a limited blast radius and no demonstrated loss of core functionality.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.

Rank-up moves

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

  • Publish the declared real-Gateway measurements and inspected before/after visual evidence.
  • Demonstrate that existing browser snapshots, settings, and conversation data survive upgrading to the candidate.

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 31, 2026, 4:13 PM ET / 20:13 UTC.

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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant