Skip to content

fix(control-ui): keep cached Details progress until live facts differ - #189769

Merged
steipete merged 7 commits into
mainfrom
steipete/coldload-details-first-pane
Nov 1, 2026
Merged

steipete merged 7 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 warm reload with cached Details replaces the saved Progress activity label with a disconnected warning, then changes it again after reconnect even when Progress facts have not changed. This fixes the Progress presentation after Details admission. The original reload evidence documented 14 visible stages.

Why This Change Was Made

Save Progress display inputs and revision/update time in the existing bounded, scoped browser snapshot. Preserve matching cached presentation until live Progress and own-parent/child reads settle, including optional-child failure. Progress and Background share the existing roster helper's loaded-child predicate; the hydrator publishes settled failure and recovery. Background's duplicate readiness gate is removed.

The route-level desktop Details preload is absent. No new store, configuration, server schema or Gateway protocol is introduced. Cached presentation does not authorize Gateway mutations; those retain live connection and permission checks. Main's pane/session-state/header snapshot shape is retained with only the Progress display facts added.

User Impact

Previously loaded Progress keeps its label and plan through reconnect; changed live facts replace values in place. This slice addresses Progress after admission. Complete Details at first app paint, ordinary-child geometry, and glyph repaint are parked follow-ups.

Accepted Performance Result

The lead explicitly accepted slice A for landing and overrode the earlier stop decision. No AWS comparison is being rerun. The acceptance rationale supplied by the lead is:

The delta's gate for A was "LoAF/FCP/first rows/hello not worse beyond A/A". Native chat LoAF paired median +33.8 ms (9/11 worse, four of those within +2.3 ms) sits inside that rig's A/A absolute-delta Q3 of 65.8 ms (max 90.5; A/A has four pairs ≥ +49 ms). The Team-scale bench, the closer model of Team, improves chat LoAF by a paired −6 ms in 9/11 and leaves dashboard at 0; native FCP/first painted rows improve ~−88 ms (7/11). The primary behavior passes: Progress cards unchanged 0/11 → 10/11, runtime labels 0/11 → 11/11. Snapshot growth ≤ 1.27%.

Arithmetic clarification from the retained raw tables: there are three, rather than four, positive A/B deltas ≤ +2.3 ms (+2.3, +1.5, +1.0), and three, rather than four, signed A/A deltas ≥ +49 ms (+57.7, +49.2, +53.2). The full values are preserved below. This correction does not change the lead's explicit acceptance, paired medians, sign counts, or IQRs.

The earlier stop correctly followed the standing paired-regression rule: native chat LoAF was +33.8 ms, worse in 9/11. Lead acceptance applies the slice's stated “beyond A/A” criterion with the disclosed controls; this is an accepted tradeoff, not an erased adverse measurement or a change to the campaign's general rule.

Evidence

Performance evidence remains pinned to 7125471 versus 91880bf. The accepted 11 A/B + 11 A/A pairs on both routes ran on one quiet AWS c7a.4xlarge lease cbx_ab4fd7c5d3dc, run_42a5e610af2c28b4f466bc2cddf09861, with repo Playwright Chromium, live-like latency and unprofiled runs. Source/asset/fixture guards and independent raw arithmetic were verified. The new rebased/compressed head receives fresh correctness validation; these are not claimed as new timing measurements.

The synthetic fixture preserves involving-me/category/created, 97 groups, 102 section-order entries, five collapsed sections, always-visible empty groups, no previews and pinned rows. A minimal active-Progress variant is used where archived targets intentionally disable Progress. No private captures or production data are included.

Progress DOM witnesses are strictly unchanged in 10/11 candidate runs versus 0/11 base; runtime labels are unchanged in 11/11 versus 0/11. One relative-time tooltip aging change is counted as a raw-card failure. This is not an assertion that every first compositor frame was audited or that all Details geometry is stable. Snapshot maxima are 1.269661% chat / 0.622054% dashboard in Team-scale, native chat 0.436617%, native dashboard zero; all ≤2%. Team RPC counts and request/response bytes are unchanged. Unavailable metrics remain unavailable; final-row DOM settlement is not final pixel paint.

Native Gateway: medians, IQRs and every paired delta

Route / metric Base median [Q1,Q3] Candidate median [Q1,Q3] Paired Δ median Better/worse/tied A/A absolute Δ Q3 / max
chat / helloHandledMs 662.50 [643.68, 709.76] 677.83 [658.22, 701.45] 17.60 5/6/0 76.72 / 168.47
chat / fcpMs 1087.93 [1080.55, 1124.79] 1070.42 [978.73, 1092.31] -87.61 7/4/0 103.80 / 227.90
chat / firstPaintedRowsMs 1091.45 [1083.42, 1125.45] 1071.43 [981.40, 1093.44] -87.81 7/4/0 103.97 / 227.97
chat / finalRowsDomMs 502.69 [476.13, 527.33] 476.70 [438.27, 532.01] -31.52 6/5/0 75.45 / 190.87
chat / loafBlockingMs 330.70 [294.40, 341.25] 337.10 [333.70, 356.90] 33.80 2/9/0 65.80 / 90.50
chat / cls 0.005029 [0.004800, 0.005029] 0.005029 [0.005029, 0.005029] 0.000000 0/3/8 0.000000 / 0.000012
dashboard / helloHandledMs 714.50 [678.30, 789.67] 775.11 [683.99, 799.50] 27.33 5/6/0 81.25 / 221.10
dashboard / fcpMs 1099.61 [1023.02, 1123.52] 1089.49 [1041.74, 1108.11] -22.91 6/5/0 61.56 / 133.72
dashboard / firstPaintedRowsMs 1103.30 [1025.44, 1125.52] 1091.42 [1043.42, 1109.40] -24.11 6/5/0 64.07 / 135.90
dashboard / finalRowsDomMs 549.56 [523.94, 561.89] 545.32 [538.56, 561.38] 0.01 5/6/0 54.07 / 110.56
dashboard / loafBlockingMs 377.90 [353.25, 427.10] 380.50 [360.35, 411.95] 12.40 5/6/0 90.35 / 125.70
dashboard / cls 0.000446 [0.000446, 0.000446] 0.000446 [0.000446, 0.000446] 0.000000 0/2/9 0.000000 / 0.000000
chat: every A/B and A/A paired delta (candidate minus base; ms except CLS)
Metric 1 2 3 4 5 6 7 8 9 10 11
helloHandledMs A/B 17.60 -67.02 -24.79 -72.41 80.23 23.33 -28.39 34.52 60.09 41.61 -13.25
helloHandledMs A/A 42.22 -43.26 -84.10 -168.47 36.41 -15.07 -86.01 -66.26 52.86 -69.33 69.19
fcpMs A/B 70.16 -17.51 67.02 -87.61 -123.15 45.70 -157.52 -93.22 13.37 -170.00 -106.44
fcpMs A/A -21.93 39.65 -51.63 11.70 107.71 -227.90 118.15 15.33 -39.73 -99.88 -41.43
firstPaintedRowsMs A/B 71.90 -20.02 64.01 -87.81 -119.97 44.03 -156.09 -91.98 11.89 -171.99 -104.05
firstPaintedRowsMs A/A -20.08 39.84 -52.00 12.03 108.01 -227.97 115.99 16.04 -40.14 -99.93 -40.11
finalRowsDomMs A/B 116.80 -31.52 73.81 -36.81 -46.07 27.03 -170.79 38.02 43.59 -67.49 -151.55
finalRowsDomMs A/A 39.02 -4.56 113.40 30.53 44.91 -190.87 105.99 35.54 5.36 -15.13 31.09
loafBlockingMs A/B 33.80 2.30 60.60 1.50 80.70 -45.70 52.20 -36.10 51.90 1.00 77.90
loafBlockingMs A/A 57.70 -41.50 -6.30 -90.50 6.10 -76.10 0.70 -70.30 49.20 -61.30 53.20
cls A/B 0.000000 0.000000 0.000000 0.000000 0.000000 0.004571 0.000012 0.000000 0.000000 0.002332 0.000000
cls A/A 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000012 0.000000 0.000012
dashboard: every A/B and A/A paired delta (candidate minus base; ms except CLS)
Metric 1 2 3 4 5 6 7 8 9 10 11
helloHandledMs A/B -7.62 -55.72 27.33 105.29 79.55 -55.82 220.29 -71.75 102.71 -179.07 51.39
helloHandledMs A/A -14.09 -55.75 107.16 -221.10 48.29 -97.97 35.46 -55.90 42.34 -64.52 -21.28
fcpMs A/B -75.27 -98.65 93.13 -23.80 136.94 -130.57 208.06 -229.88 57.85 -22.91 18.89
fcpMs A/A 25.25 -128.60 60.58 -133.72 56.45 46.60 17.33 -31.43 11.30 -31.81 -62.54
firstPaintedRowsMs A/B -76.12 -99.92 91.83 -24.11 136.05 -131.72 207.99 -231.95 56.01 -24.17 19.99
firstPaintedRowsMs A/A 24.11 -131.65 64.06 -135.90 55.89 48.03 16.06 -31.90 11.94 -32.02 -64.08
finalRowsDomMs A/B -7.62 -22.42 69.03 -23.61 49.15 -39.72 42.59 -40.15 0.01 1.33 18.79
finalRowsDomMs A/A -11.99 -53.85 110.56 54.30 37.99 -16.07 25.76 -58.30 -3.66 19.28 -23.68
loafBlockingMs A/B 32.10 -109.80 62.70 -14.40 21.10 -50.70 53.10 -103.70 70.20 -24.30 12.40
loafBlockingMs A/A -14.10 -57.10 76.80 -125.70 35.60 -94.10 -1.30 -107.50 58.20 -86.60 31.50
cls A/B 0.000891 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000021 0.000000 0.000000 0.000000
cls A/A 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

Team-scale bench: medians, IQRs and every paired delta

Route / metric Base median [Q1,Q3] Candidate median [Q1,Q3] Paired Δ median Better/worse/tied A/A absolute Δ Q3 / max
chat / helloHandledMs 592.80 [586.25, 607.10] 590.10 [581.60, 591.75] -7.50 6/5/0 23.10 / 32.90
chat / fcpMs 92.00 [88.00, 92.00] 88.00 [88.00, 88.00] -4.00 8/1/2 4.00 / 8.00
chat / firstPaintedRowsMs 412.00 [410.00, 416.00] 408.00 [408.00, 416.00] 0.00 4/5/2 12.00 / 20.00
chat / finalRowsDomMs unavailable unavailable unavailable unavailable unavailable / unavailable
chat / loafBlockingMs 214.00 [199.50, 221.50] 204.00 [194.50, 210.00] -6.00 9/2/0 27.50 / 39.00
chat / cls 0.000050 [0.000050, 0.000050] 0.000050 [0.000050, 0.000050] 0.000000 0/0/11 0.000000 / 0.000000
dashboard / helloHandledMs 624.10 [604.50, 628.60] 608.10 [602.40, 616.70] -17.20 8/3/0 33.15 / 47.10
dashboard / fcpMs 92.00 [92.00, 94.00] 92.00 [92.00, 94.00] 0.00 2/3/6 4.00 / 4.00
dashboard / firstPaintedRowsMs unavailable unavailable unavailable unavailable unavailable / unavailable
dashboard / finalRowsDomMs unavailable unavailable unavailable unavailable unavailable / unavailable
dashboard / loafBlockingMs 206.00 [192.00, 215.50] 199.00 [193.00, 203.50] 0.00 5/5/1 19.00 / 38.00
dashboard / cls 0.000014 [0.000014, 0.000014] 0.000014 [0.000014, 0.000014] 0.000000 0/0/11 0.000000 / 0.000000
chat: every A/B and A/A paired delta (candidate minus base; ms except CLS)
Metric 1 2 3 4 5 6 7 8 9 10 11
helloHandledMs A/B 0.60 28.30 -20.00 25.70 -24.20 -7.50 -24.00 -46.60 -51.80 13.00 30.40
helloHandledMs A/A -1.00 -1.00 -25.30 -31.40 -2.10 -14.90 -13.20 -11.50 14.60 20.90 32.90
fcpMs A/B 0.00 -4.00 0.00 -4.00 -4.00 -4.00 4.00 -4.00 -4.00 -8.00 -4.00
fcpMs A/A -8.00 0.00 4.00 -4.00 0.00 -4.00 0.00 -4.00 0.00 0.00 0.00
firstPaintedRowsMs A/B 0.00 4.00 0.00 -20.00 -4.00 4.00 16.00 12.00 4.00 -8.00 -16.00
firstPaintedRowsMs A/A -12.00 -12.00 20.00 12.00 0.00 -4.00 -8.00 -8.00 -12.00 -12.00 -16.00
finalRowsDomMs A/B unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
finalRowsDomMs A/A unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
loafBlockingMs A/B -25.00 -4.00 -3.00 -8.00 -2.00 -6.00 -46.00 7.00 9.00 -10.00 -21.00
loafBlockingMs A/A -3.00 -5.00 7.00 27.00 -31.00 -24.00 -18.00 21.00 -2.00 -28.00 -39.00
cls A/B 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
cls A/A 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
dashboard: every A/B and A/A paired delta (candidate minus base; ms except CLS)
Metric 1 2 3 4 5 6 7 8 9 10 11
helloHandledMs A/B 9.10 -37.00 -60.00 -17.20 -18.00 46.50 -19.60 36.80 -21.50 -5.10 -1.10
helloHandledMs A/A 12.80 47.10 -32.80 8.10 5.30 24.20 7.70 -12.80 -33.50 1.40 39.50
fcpMs A/B 4.00 -8.00 -4.00 0.00 0.00 4.00 0.00 4.00 0.00 0.00 0.00
fcpMs A/A 0.00 -4.00 -4.00 -4.00 4.00 0.00 0.00 0.00 -4.00 4.00 0.00
firstPaintedRowsMs A/B unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
firstPaintedRowsMs A/A unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
finalRowsDomMs A/B unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
finalRowsDomMs A/A unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable unavailable
loafBlockingMs A/B -32.00 17.00 -18.00 -28.00 -5.00 10.00 1.00 20.00 -29.00 0.00 9.00
loafBlockingMs A/A -10.00 -9.00 -13.00 -7.00 5.00 -19.00 -19.00 -4.00 10.00 38.00 26.00
cls A/B 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
cls A/A 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
Route / count or bytes Base median Candidate median Snapshot growth
chat / rpcCount 49.00 49.00 —
chat / rpcRequestBytes 11190.00 11190.00 —
chat / rpcResponseBytes 452943.00 452943.00 —
chat / snapshotBytes 52770.00 53440.00 1.270%
dashboard / rpcCount 47.00 47.00 —
dashboard / rpcRequestBytes 10586.00 10586.00 —
dashboard / rpcResponseBytes 430589.00 430589.00 —
dashboard / snapshotBytes 51764.00 52086.00 0.622%

Synthetic visual evidence on this head

Representative cached Progress while the real Gateway upgrade is held, pair 1. Baseline shows the disconnected activity warning; candidate retains the saved runtime label. These are pre-hello captures after app admission, not proof of complete Details in the first app frame. Both entire captures were inspected for unrelated/private content; all conversation content is synthetic.

Baseline cached Progress during held reconnect

Candidate cached Progress during held reconnect

B: composition attribution only

The diagnostic source is b8fc7149262f, AWS c7a.4xlarge lease cbx_455c917053b7, two observations of the same candidate bundle. These are profiled attribution observations, not final-head A/B performance proof.

Owner Observation 1 self / inclusive ms Observation 2 self / inclusive ms
Desktop composition 0 / 8.739 0 / 8.822
People 0 / 2.010 0 / 1.762
Outputs No matching samples No matching samples
Progress 0 / 8.295 0 / 8.332
Automations 0.109 / 2.037 0 / 2.475
Subagents, initial composition No matching samples No matching samples
ProgressDetailsContent 0 / 4.233 0 / 4.231

Inclusive stacks overlap and cannot be summed; no samples does not mean no execution. The first Details owner sample occurs after hello publication and before handling completes. The broad owner-to-DOM windows, 141.282/82.725 ms, include unrelated work and scheduling and are not synchronous composition cost. Neither those windows nor the ~8.8 ms ancestry sample bounds the cost of moving module evaluation/layout into first paint.

Section Elements / all nodes Initial visibility
People 22 / 32 Collapsed
Outputs 10 / 13 Collapsed
Progress 62 / 95 All 3 rows visible
Automations 73 / 109 All 4 rows visible
Subagents Absent initially; 24 / 28 settled One visible row when live

Initial section roots total 167 elements/249 nodes; settled total 191/277. There is no measured offscreen expanded list to defer. These are DOM/rAF checkpoints corroborated by inspected populated frames, not exact first-paint census.

The ordinary-child row is missing from the cached panel and later adds a 112 px section in both arms of the earlier held comparison: Background snapshots listed collection members while ordinary children render from the live roster. Removing collection filtering or hydration/access gates would change semantics. A coherent receipt/admission repair is estimated at 100–180 runtime lines, above B's 60-line ceiling. Deferring three eager closed-menu SVGs might cost 6–12 lines, but its saving is unmeasured and does not establish complete first-pane admission or ≤25 ms added LoAF. No qualifying B implementation is proposed for landing.

C: glyph repaint attribution only

One of two same-b8-bundle observations reproduces grayscale-to-LCD Progress text while its visible content remains unchanged. A populated 343×535, opacity-1, non-opaque Overlap compositor layer has LCD exclusion contents-not-opaque; it disappears before the next LCD frame. The later plan-line pixels equal the settled crop byte-for-byte. The other observation's first complete frame already has LCD glyphs.

Across 47 targets and 41 normal/pseudo style properties, sampled DOM/rAF/settled checkpoints show no changes; fonts are loaded. Sampling does not cover every actual glyph frame. A hidden add-reaction opacity/transform animation co-occurs, but no trace edge establishes it as the cause. The layer/pixel evidence supports compositing, not a confirmed entry-transition trigger. No general ≤10-line fix or zero-repaint claim is justified; no C source change is included.

Rebase, Compression and Final-Head Validation

Final head: 5d7bc4674e5c5d4de290a03b93e0f5d36d117fcb, pinned main 9084b1500f4cfbc7b293e71c660e469866fc261c. Main includes #190251 (9a7aab324b77), #189918 and #190245. The pane/header/session-state snapshot shape survives; this slice adds only the Progress facts and optional child-read failure presentation. No route preload or B/C implementation is present.

Correctness proof ran on AWS c7a.4xlarge cbx_de72ce476f94, validation run, against the exact source above. The fresh-PR route applied no local patch. Final candidate/base source guards are clean. The complete measurement comparison was not rerun. The lease is released, provider cleanup is complete, and no host remains; no local Gateway was started.

Final-head gate Actual result
Focused owner tests, seven files 158/158 pass; Vitest 10.46 s / runner 14.32 s
Native parameterized chat/dashboard reload regression 2/2 pass independently and inside the full suite
New-test cost: pnpm test ui/src/e2e/chat-details-reload.e2e.test.ts --maxWorkers=1 26.91 s wall, Vitest 23.58 s
Native regression replay on pinned main 2/2 fail at the intended presentation assertions, line 101; not a setup failure
Details Chromium browser tests 18/18 pass
Formatting, ownership/ratchet guards, core-test/UI/script typechecks Pass in the completed check-changed summary
Full UI e2e, node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --maxWorkers=4 Files 892 pass / 1 fail / 3 skip (896); tests 3,385 pass / 1 fail / 4 skip (3,390); native exit 1, Vitest 3,496.54 s
Full-suite completeness 896 expected and observed module identities, no missing/unexpected/conflicting records; terminal file/test census and exit agree
node scripts/check-changed.mjs --base <pinned-main> Exit 137: dead-export scan exit 1 plus core lint exit 137; all other completed gates pass. Failed stages remain failed
Isolated review Scoped-clean through P2, post-validation independent review; final source verification passed
Exact-head PR CI Green, Ready-triggered run 41345276929, completed success on 5d7bc4674e5c5d4de290a03b93e0f5d36d117fcb: 37 passed / 24 intentionally skipped, no failures; all three checks-ui shards, selected checks-ui-e2e (1/2), control-ui-performance and openclaw/ci-gate pass. The watcher confirms a green full PR rollup with zero pending checks. Prior draft-skipped checks are not counted.

The full suite's sole failed file is ui/src/e2e/chat-outbox-migration.e2e.test.ts, case at line 71. Pinned main reproduces the same initial-roster timeout in that case, with one failed/one passed test in the same file and the same test-source blob as head. It is inherited. The other 892 files passed, including all six boot-composer cases and both new Details reload cases. The three skipped files are unchanged desktop-resize.real-gateway.e2e.test.ts, chat-steer-deferred-custody.real-gateway.e2e.test.ts, and deepseek-search.real-gateway.e2e.test.ts; no skip was introduced.

The unused-export finding is also inherited: actual production and full-tree scans on pinned main report the same retireControlUiSessionPrState export in src/gateway/control-ui-session-pr-prepared-read.ts. No Gateway source is changed here.

The candidate whole-core lint ended with 137, correlated with a kernel global OOM kill at 18:16:46 UTC and 98.28% machine memory usage. The same-command pinned-main control completed with exit 1 and 12 existing lint errors; it did not reproduce exit 137. These are distinct outcomes. The maintained split-core/scripts route covering every changed TypeScript/TSX file, including proof tooling, passes on the candidate with zero warnings and zero errors. Whole-tree check-changed is not claimed green.

Both builds report identical existing CSS audit warnings: 302.3 KiB gzip / 1564.1 KiB raw, against caps of 302.1/1561.8 KiB. This branch changes no stylesheet. These warnings did not fail either build.

Production Size and Test Cost

One compression pass reduced UI production growth from +108 to +96 lines (118 added, 22 deleted), removing 12 lines from the earlier candidate. Proof tooling remains +8, so total production growth fell +116 → +104. Tests remain +157, docs +2, and the exact test-allocation record +3.

The shared readiness predicate now belongs to the existing roster helper and reuses its session-key import/type. This removes the snapshot-to-component type backedge and the resulting patch-type relocation; two files disappear from the PR diff. The Progress memo captures its card/session and receipt once while preserving the old desktop/readiness short circuit. Background's duplicate readiness gate is deleted.

Remaining UI growth is required by the display receipt and its lifecycle: 36 schema lines, 37 Progress presentation/publication lines, 14 roster-helper/type lines, 12 hydrator failure/recovery lines, two pane/props wiring lines, less five Background lines. The existing schema helpers, cache scope/incarnation/locale checks, quotas and invalidation remain the owners. No new store, configuration, server schema or protocol is added.

The 120-line parameterized native regression covers both routes through real browser rendering and the existing persistence owner; 32 lines cover the distinct failed-child-read presentation handoff and five assertions cover producer settlement/recovery. The exact 157-line allocation is lead-authorized for those behavioral regressions, with no slack and no shared scalar raise. Physical source counts include comments/types.

The requested filtered statistic is +139 (161 insertions, 22 deletions): its exclusions still count 32 .test.tsx lines, three allocation lines and eight proof-tool lines. The production/test split below is from git diff --numstat origin/main...HEAD at the pinned base.

Scope File Added Deleted Net
test-allocation config/test-lines-allocations/details-first-pane.txt 3 0 3
docs docs/web/control-ui.md 2 0 2
proof-tooling scripts/perf/warm-reload-proof.ts 8 0 8
tests ui/src/e2e/chat-details-reload.e2e.test.ts 120 0 120
tests ui/src/lib/sessions/swarm-roster.test.ts 5 0 5
ui-production ui/src/lib/sessions/swarm-roster.ts 16 4 12
ui-production ui/src/pages/chat/chat-pane-state-owner.ts 1 0 1
ui-production ui/src/pages/chat/chat-spawned-subagent.ts 14 0 14
tests ui/src/pages/chat/components/chat-details-arrival.test.tsx 32 0 32
ui-production ui/src/pages/chat/components/chat-details-background.tsx 2 7 -5
ui-production ui/src/pages/chat/components/chat-details-progress.tsx 48 11 37
ui-production ui/src/pages/chat/components/chat-details-types.ts 1 0 1
ui-production ui/src/pages/chat/session-details-snapshot-schema.ts 36 0 36

Release-note context: keep cached Details Progress activity labels and content through reconnect until live facts differ. B/C are parked by the lead. Do not merge automatically; the lead reviews and lands this PR.

@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 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR preserves cached desktop Details progress presentation until live progress and child-session reads settle.

Example: Reload a conversation whose revision 1 progress card shows “Waiting for delegated work.”

  • Before: Partial reconnect state can change the activity label despite unchanged live facts.
  • After: The matching saved presentation remains until live reads settle; a failed child read also allows fresh parent facts to replace it.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch has no definite introduced defect, but its explicitly required experiment evidence is pending.
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 saved progress plan changes its activity label during reconnect even when its live facts are unchanged.
Reason: The maintainer-directed experiment addresses a concrete presentation defect with a narrow implementation and explicit acceptance criteria.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open as a maintainer-directed experiment under its explicit do-not-merge hold; current main lacks the proposed progress-display handoff, and no definite introduced defect was found.

Priority: P2
Reviewed head: b24fd051b7bc81d816a56689e54f32cf4237080e

Before merge

  • Await maintainer action - The campaign lead must lift the explicit do-not-merge hold before this PR can land.
  • 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: The declared real-Gateway comparison and inspected visual proof remain pending, and the current regression has no supplied baseline-red result.
Agent review details

How this fits together

The Control UI combines scoped browser snapshots with live progress and child-session observations to render Details, while existing owners retain action authority.

flowchart LR
  A[Scoped browser snapshot] --> B[Details progress presentation]
  C[Live progress owner] --> B
  D[Child roster owner] --> B
  B --> E[Progress card display]
  B --> F[Existing snapshot writer]
  F --> A
Loading

Technical review

Best possible solution:

Use the existing scoped snapshot and live owners for the narrow handoff, and land only if the declared experiment succeeds.

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

Current-main source derives the saved card’s presentation from partial live reconnect facts; the supplied browser regression targets that transition, but this read-only review ran no target code.

Is this the best way to solve the issue?

The patch follows existing snapshot, presentation, and roster ownership and removes the duplicated readiness predicate; unlike the rejected predecessor, it adds no eager Details-loading path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Scoped Details display restoration keeps the original intent (dad7cbe: Restore bounded display facts through the disposable pane snapshot while preserving live action authority.)
  • Delegated progress presentation keeps the original intent (58b88a8: Keep authored checklist state separate from parent outcomes and derive delegated runtime activity through shared presentation.)
  • Managed child-session reads keeps the original intent (7729235: Reuse managed child queries and parent observations while retaining independent read failure recovery.)
  • Warm-reload proof tooling keeps the original intent (5df2f45: Measure isolated real-Gateway reload behavior rather than infer performance from mocked transport.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff retains progress display inputs in the existing snapshot, publishes settled child-read failure, and reuses Background’s existing parent-backed hydration predicate. (ui/src/pages/chat/components/chat-details-progress.tsx:35, b24fd051b7bc)
  • Current main still uses live-only presentation: Current main passes session activity and projectProgressCardRuntime directly into the progress card and has no saved progress field in the Details snapshot schema. (ui/src/pages/chat/components/chat-details-progress.tsx:54, 7b29a23da2a6)
  • Explicit experiment hold: The full current body declares 11 interleaved comparisons and A/A controls, reports measurements and full UI proof as pending, and explicitly prohibits merging; GitHub reports this head as draft and mergeable. (b24fd051b7bc)
  • Rejected predecessor informs scope: experiment(control-ui): complete cached Details in first pane [do not merge] #189711 records an adverse long-frame result and stops the eager Details-loading experiment; this PR preserves the original lazy boundary and isolates cached progress presentation.
  • Existing authority boundary retained: Snapshot writes still check connection, client, epoch, session incarnation, scope key, and locale; cached progress values feed presentation while refresh, dismissal, and clearing retain their existing callbacks. (ui/src/pages/chat/chat-details-snapshot.ts:70, b24fd051b7bc)
  • Supporting browser regression uses mocked transport: The parameterized chat/dashboard regression exercises snapshot production, reload, unchanged reconnect, and changed live progress through installMockGateway; it does not establish real-Gateway performance or compositor stability. (ui/src/e2e/chat-details-reload.e2e.test.ts:44, b24fd051b7bc)

PR surface

Source +100, Tests +157, Docs +2, Other +11. Total +270 across 14 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 8 123 23 +100
Tests 3 157 0 +157
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 2 11 0 +11
Total 14 293 23 +270

Review metrics

Metric Value Why it matters
Production versus test changes UI runtime +123/-23 lines; tests +157/-0 lines Runtime growth adds typed persisted presentation and a roster failure receipt; tests cover reload composition and the distinct failed-read handoff.
New proof-tool option 1 repeatable flag: --init-script The warm-reload proof tool can replay operator-supplied browser initialization without adding product configuration.

Labels

Label changes:

  • add P2: Transient progress-label changes during warm reload affect a limited presentation surface without demonstrated message loss or blocked core workflows.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: Transient progress-label changes during warm reload affect a limited presentation surface without demonstrated message loss or blocked core workflows.
  • 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.

  • Complete the declared real-Gateway performance and visual acceptance gate.
  • Demonstrate fresh-install and latest-stable upgrade behavior with existing settings and conversation data intact.

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, 5:37 PM ET / 21:37 UTC.

@steipete
steipete force-pushed the steipete/coldload-details-first-pane branch from b24fd05 to 119beb7 Compare November 1, 2026 01:10
@steipete steipete changed the title experiment(control-ui): cached Details progress [do not merge] fix(control-ui): keep cached Details progress until live facts differ Nov 1, 2026
@steipete
steipete marked this pull request as ready for review November 1, 2026 03:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-11-01T20:10:37.208914Z 5d7bc46 Draft marked ready
ℹ️ 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.

@steipete
steipete force-pushed the steipete/coldload-details-first-pane branch 3 times, most recently from 563e0ea to b8fc714 Compare November 1, 2026 09:12
@steipete
steipete marked this pull request as draft November 1, 2026 13:35
@steipete
steipete force-pushed the steipete/coldload-details-first-pane branch from b8fc714 to 7125471 Compare November 1, 2026 15:59
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 7125471 to 5d7bc46 Compare November 1, 2026 17:44
@steipete
steipete marked this pull request as ready for review November 1, 2026 20:08
@steipete

steipete commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Lead landing note for ClawSweeper's two pre-merge items (review of older head b24fd051):

  1. Do-not-merge hold: lifted by the lead. Slice A is accepted with the tradeoff disclosed in the PR body.
  2. Data-model compatibility: existing stored Details snapshots keep working in both directions. The chat snapshot projection stays at CHAT_SNAPSHOT_PROJECTION_VERSION = 14 (ui/src/pages/chat/session-snapshot-record.ts).
    • Upgrade (old record, new reader): details.progress is declared with json.optional (ui/src/pages/chat/session-details-snapshot-schema.ts). optional() returns undefined for an absent key, and object() accepts a missing optional field (ui/src/lib/snapshot-json.ts). With no cached progress, cached() in ChatDetailsProgress is undefined, so presentation() falls through to live(). That is exactly the pre-PR rendering for that one reload, and the next settled live read writes the new fact.
    • Downgrade (new record, old reader): json.object is non-strict by default (strict = false in snapshot-json.ts), so older readers ignore the extra progress key.

These records are a disposable, bounded browser cache, not server or SQLite state. No migration is needed.

Exact head 5d7bc4674e5c is ready to land. PR CI is green: 55 pass, 49 skipped, including all checks-ui shards and PR context. Codex PR review of this head found nothing, and the lane's autoreview is clean. Full UI: 892 pass, 1 fail; the failure reproduces on pinned main.

@steipete
steipete merged commit f6d8f95 into main Nov 1, 2026
165 checks passed
@steipete
steipete deleted the steipete/coldload-details-first-pane branch November 1, 2026 20:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…openclaw#189769)

A warm reload with cached Details no longer replaces the saved Progress activity label with a disconnected warning and then changes it again after reconnect when the progress facts have not changed.

The existing Details snapshot owner now retains Progress display inputs (session status/timestamps, active-run flag and the projected runtime) keyed by card revision and updatedAt. The desktop Progress card shows the matching cached presentation until live progress and the own-parent/child reads settle, then writes the live projection back. A settled failed child read publishes through SwarmRosterHydrator so fresh parent facts replace the cache instead of waiting on retries. Progress and Background share the loaded-child predicate, and Background's duplicate readiness gate is deleted. The route-level Details preload from the earlier slice is not included. The Details field is optional within chat snapshot projection 14: old records fall through to live rendering, and older readers ignore it. No protocol, server schema or config change.

Proof: 11 interleaved AWS pairs per route plus A/A on the native Gateway rig and the Team-scale bench: cached Progress cards unchanged through reconnect 0/11 -> 10/11, runtime labels 0/11 -> 11/11; snapshot growth <= 1.27%. Native chat LoAF paired +33.8 ms sits inside that rig's A/A absolute-delta Q3 of 65.8 ms and was accepted by the lead; the Team-scale bench shows chat LoAF -6 ms (9/11) and dashboard 0, and native FCP/first painted rows improve by about 88 ms. UI production +96 LOC. Exact-head CI green; full UI 892 pass / 1 fail, which reproduces on pinned main.

Release-note context: Control UI warm reloads keep cached Details Progress activity labels and content through reconnect until live facts differ.
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