Skip to content

fix(control-ui): retain bounded full replies during reload - #189918

Merged
steipete merged 12 commits into
mainfrom
steipete/coldload-cached-row-text-fidelity
Nov 1, 2026
Merged

steipete merged 12 commits into
mainfrom
steipete/coldload-cached-row-text-fidelity

Conversation

@steipete

@steipete steipete commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Rebase Validation

Current head: df013b1b0da25e3be8d057c3d8fb9a7dd512a403, rebased on main 5342923d897ad8a8021bdf586753f8cd38cd3094. GitHub reports MERGEABLE; the PR remains ready and unmerged.

Kept #190238's createChatSearchMatcher(query, recovery) factory: query normalization and the phrase matcher are prepared once, while the shared retained/live full-message selector runs inside the returned message closure. Main's plain-prose fast path remains unchanged, and the old per-message matcher API is not restored. The auto-merge audit preserves projection v14 versus main's v13, the single-writer 64 KiB bound, the 80-row display window and main's shared-envelope optimization, and the existing probe sampling lifecycle.

Fresh full-branch autoreview of the resolution is clean through P2. Reviewed files and context inputs are byte-identical after the final locale-only rebase. The only additional commit formats the resolved closure. Runtime delta versus pinned main: +67 LOC; requested production-stat filter: 267 additions / 99 deletions = +168.

AWS validation: cbx_2bcbddd3efba, c7a.8xlarge (32 CPUs / 61 GiB observed). This larger validation profile avoids the kernel OOM seen on both prior 32 GiB source arms; no performance comparison was run on it. Changed e2e costs below use pnpm test <file> --maxWorkers=1.

New-head check Result Wall time
Focused units, 13 files 410/410 passed 18.16 s
Recovered-text browser search 2/2 passed 29.41 s
Transcript browser search 4/4 passed 26.97 s
Cached-text/offline-search reload e2e 1/1 passed 26.43 s
Warm-boot e2e 10/10 passed 53.60 s
Completed-history real-Gateway e2e 1/1 passed 207.78 s including runtime preparation
pnpm tsgo:ui Passed 2.73 s
pnpm tsgo:test:ui All eight UI declaration/test lanes passed 19.66 s
node scripts/check-changed.mjs Exit 1; classified baseline lint and unused-export failures below. Other guards, typechecks, format, and script lint passed; no OOM. 1249.62 s
Exact-head CI 41304694634 Finished; inherited check-lint-core-2 red and its aggregate openclaw/ci-gate red. UI e2e and typecheck jobs passed. Complete

Red classification against pinned main:

  • Failed lint job: src/skills/workshop/experience-review.test.ts:167–168, typescript(no-unnecessary-type-arguments) on two default <void> arguments. The file is unchanged by this PR. The failed job log was fetched once. Running targeted lint locally on the PR sources and the exact pinned-main source tree produces byte-identical diagnostics at those two locations; the file's 19 runtime tests also pass locally on both source trees. The PR sources were restored and verified clean. The aggregate gate fails because of this lint job; no CI retry or unrelated source repair was used.
  • check-changed additionally flags unused src/infra/sqlite-native-runtime.ts: assertSafeSqliteRuntime. An isolated scan on exact pinned main, AWS cbx_69861e8f82a2 (c7a.4xlarge), reports the identical export in both production and full-tree scans: exit 1, 134.32 s. No SQLite implementation, schema, or visibility was changed. This is a reproduced inherited failure.

Both validation leases are released with cleanup complete and no host remaining. The candidate's final loopback-listener check is empty.

The lead waived a new benchmark because the manual runtime resolution is confined to the search closure. Performance tables, screenshots, the full-suite list, and old baseline controls below remain explicitly pre-rebase evidence on ea19d12c9081; they are not new-head results. The requested focused/browser/e2e and typecheck/check-changed validation above is from the new exact head.

What Problem This Solves

A warm reload loses the full assistant reply already displayed by live recovery: the browser snapshot contains the 8,000-character history preview, so the first restored row is truncated and later expands by about 280 px.

Why This Change Was Made

The producer is DEFAULT_CHAT_HISTORY_TEXT_MAX_CHARS = 8_000 in chat-display-projection.helpers.ts, line 24; the truncation marker is appended at line 156. History (git log -p -S) traces the 12,000 → 8,000 reduction to 4f00b769251d, which tightened context limits and bounded excerpts. That request-size cap remains useful; the missing piece was retaining the full display response already accepted by automatic recovery.

Retain the accepted full display response at the transcript recovery owner in existing scoped row-display facts. The renderer can show it while offline or reconnecting; changed source previews reject stale facts, and normal live revalidation remains. Server replay and pairing QR data are removed before retention. The single facts write owner admits a recovered object only when its serialized UTF-8 size is at most 64 KiB, including its exact source. Larger replies retain today's preview then automatic live recovery behavior.

Projection 13 → 14 drops old disposable cache records: expect one cold reload after deployment, then complete cached rows on subsequent reloads. Existing row pruning, 12 MiB record, 24 MiB total, and 20-session limits remain. No server schema, protocol, runtime configuration, or history-request changes.

User Impact

Loaded replies within the bound return with their complete text/media and final row height. Rendering and transcript search use one recovery-selection owner, so the cached tail remains searchable offline; loaded live recovery takes priority and exact-source matching rejects stale cached text. Release-note context: preserve previously displayed complete assistant replies during warm reloads.

Accepted Paint Tradeoff

The accepted product tradeoff permits paired FCP and first-painted-row increases up to +90 ms on chat / +60 ms on dashboard when the first restored row is complete, rather than painting a shorter preview that then expands. Chromium retains the old compositor surface until the new paint. Complete text 11/11, zero expansion, final geometry earlier 11/11, existing cache bounds, and no LoAF/CLS regression beyond A/A remain required.

The final unprofiled run below passes those gates. Chat paired FCP/first rows are −7.27/−4.12 ms with mixed signs, so no paint-speed improvement is claimed. Dashboard paired FCP/first rows are +53.60/+56.02 ms, within the accepted +60 ms bound. Complete cached content and final-row geometry arrive 409 ms earlier on chat / 620 ms earlier on dashboard, in 11/11 pairs on each route, without the 280 px expansion.

Bounded Attribution

Assessment: class (a), normal complete-row Markdown/DOM rendering and paint scheduling; no actionable class (b) hotspot found. This is a bounded assessment from exactly one profiled A/B warm pair per route, not an exact causal allocation of every millisecond in the prior unprofiled FCP rise. No further optimization or trace run is proposed.

Head 596deb526d8e104d1f8f1846f7abb6300ad1f504, base 04d6904c734a, AWS cbx_534db4f28027, c7a.4xlarge. Same real-Gateway long-Markdown fixture and signed-in admission. Four warm profiles/timelines total. Profiled reports are marked and excluded from timing comparisons; profiler startup, module-cache generation and scheduling materially perturb the wall timings.

To isolate initial cache rendering, source-mapped V8 samples were clipped to the common interval before either arm's first full-message response (about 880 ms chat, 945 ms dashboard under instrumentation). Candidate cached text is already complete in this interval. Inclusive function times overlap; the grouped snapshot/Markdown figures below use exclusive samples.

Initial interval observation Chat base → candidate Dashboard base → candidate
Snapshot/schema/cache exclusive samples 4.36 → 6.23 ms 5.57 → 4.80 ms
Facts read inclusive samples 0.39 → 2.13 ms 1.10 → 1.07 ms
Markdown exclusive samples 32.35 → 27.18 ms 19.66 → 31.66 ms
Layout timeline duration 81.25 → 78.60 ms 73.18 → 79.54 ms
Style timeline duration 39.18 → 36.63 ms 42.66 → 36.66 ms

The dashboard pair shows about 12 ms extra ordinary Markdown samples and 6 ms extra layout; the chat pair does not reproduce an additional Markdown/layout CPU cost under instrumentation. The measured cache paths are far too small to explain the earlier +85/+54 ms unprofiled wall rise. Source inspection confirms json.unknown is an identity reader (ui/src/lib/snapshot-json.ts:29), facts reads are synchronous, and extractTextCached is memoized. There is no sampled extraction hotspot. These observations support normal render/paint scheduling rather than a new heavyweight cache validation or admission wait. Single-pair sample differences are not performance gains or regression estimates.

Both candidates record exactly one text/height state: complete 7,439-character rendered text at 3,718.5 px. Both baselines record a 6,728-character preview at 3,438.546875 px and then the complete state. No visible cached-preview-to-full replacement appears in either candidate. Source-mapped stacks and raw traces are preserved for independent inspection; no claim is made that a MutationObserver proves absence of every invisible intermediate DOM operation.

Review separately found a diagnostic observer that could start redundant sampling loops; the final probe reuses the existing frame loop. The one-pair profiles remain exploratory, with profiler/probe scheduling limits; they do not allocate the earlier wall-time rise precisely. All final A/A and A/B measurements below use the corrected probe. No further runtime optimization or trace attempt was made.

Evidence

Performance head: ea19d12c9081091e4b37b78fe4f2b9607579b0b2. AWS Crabbox cbx_d49c37fec9aa, c7a.4xlarge, 16 CPUs / 30 GiB. One fixed instance for 11 interleaved pairs plus A/A, both routes, both harnesses. Real-Gateway RTT shaping: 80 ms; native Team-scale: live-fast, untraced. A/B quiet-host CPU idle: 92.42%.

The real rig uses production HTTP/WebSocket and synthetic long Markdown. The native Team-scale bench cross-checks the UI with synthetic WebSocket fixtures. Measurements exclude builds/tests; no local-Mac timings are performance evidence.

Route Stable complete text/height, base → candidate Baseline height growth → candidate Snapshot JSON UTF-8 bytes, base → candidate Growth
chat 0/11 → 11/11 279.95 px → 0.00 px 93,826 → 112,107 +18,281 (+19.48%)
dashboard 0/11 → 11/11 279.95 px → 0.00 px 95,641 → 113,924 +18,283 (+19.12%)

Independent cross-arm equality: all 22 candidate first cached states exactly match baseline settled live text hash, character count (7,439), row height, and width. The 64 KiB bound preserves this fixture on all reloads.

Connect-first with exactly one connect: 176/176 warm reloads across both harnesses and A/A + A/B. Real-Gateway warm reloads with one main document: 88/88; browser errors: 0.

Snapshot growth exceeds the 5% preference. The additional full display and exact source cost about 18 KiB per measured snapshot, below 0.08% of the existing 24 MiB total budget. This removes the visible missing final list items/links and row-height settlement. Canonical history stays unchanged; the existing row pruning, 12 MiB per-record, 24 MiB total and 20-session bounds remain. JSON bytes exclude Blob payloads.

Median [Q1, Q3]; paired deltas are candidate minus baseline. CLS is unitless; other values are milliseconds. Real first rows uses the paint milestone; final rows is DOM geometry. Compositor frames are inspected separately.

Real-Gateway route / metric Base Candidate Paired delta Better/worse A/A paired delta
chat / helloHandledMs 458.18 [451.67, 474.13] 493.06 [466.56, 539.90] 7.46 [-19.65, 64.04] 5/6 28.86 [-307.80, 44.51]
chat / fcpMs 1047.77 [1041.98, 1068.89] 1059.36 [987.59, 1073.66] -7.27 [-74.92, 40.64] 6/5 74.06 [33.29, 136.74]
chat / firstPaintedRowsMs 1051.48 [1043.51, 1069.51] 1059.43 [989.47, 1075.53] -4.12 [-75.98, 39.96] 6/5 60.07 [16.00, 111.97]
chat / finalRowsDomMs 914.71 [887.49, 1026.54] 518.09 [502.75, 534.14] -408.67 [-500.80, -392.63] 11/0 24.47 [-151.52, 100.52]
chat / loafBlockingMs 286.10 [280.75, 313.55] 278.10 [258.90, 308.50] -14.40 [-47.15, 22.50] 7/4 -29.80 [-42.05, 30.35]
chat / cls 0.000144 [0.000087, 0.000144] 0.000058 [0.000058, 0.000058] -0.000087 [-0.000087, -0.000029] 11/0 0.000000 [0.000000, 0.000000]
dashboard / helloHandledMs 604.55 [493.99, 650.06] 634.60 [573.27, 753.74] 10.81 [-89.47, 169.48] 5/6 -14.13 [-134.92, 39.00]
dashboard / fcpMs 971.92 [949.62, 1061.65] 1011.77 [966.92, 1054.18] 53.60 [-71.11, 130.49] 4/7 2.71 [-47.03, 29.02]
dashboard / firstPaintedRowsMs 975.51 [951.50, 1063.45] 1015.32 [969.46, 1055.57] 56.02 [-69.90, 130.11] 4/7 -11.95 [-81.98, 23.90]
dashboard / finalRowsDomMs 1130.15 [1102.47, 1235.91] 521.10 [508.73, 542.21] -619.79 [-685.68, -572.10] 11/0 21.12 [-177.89, 82.31]
dashboard / loafBlockingMs 324.40 [299.15, 333.05] 301.90 [287.00, 331.45] -10.70 [-41.45, 17.15] 6/5 7.10 [-20.65, 37.75]
dashboard / cls 0.000158 [0.000144, 0.000173] 0.000058 [0.000058, 0.000058] -0.000101 [-0.000115, -0.000087] 11/0 0.000000 [-0.000014, 0.000054]

Native dashboard first-row Element Timing is unavailable in both arms (all 44 A/A+A/B samples). It is shown as unmeasured, without replacing it with a DOM milestone. Real-Gateway dashboard painted-row measurement owns this gate. Native hello is response receipt; the real-Gateway table owns hello-handled.

Native route / metric Base Candidate Paired delta Better/worse A/A paired delta
chat / helloReceivedMs 498.60 [496.10, 500.00] 498.70 [497.20, 499.65] 0.60 [-0.95, 2.30] 4/7 0.70 [-2.70, 1.65]
chat / firstPostHelloRpcMs 505.60 [503.15, 507.00] 505.50 [504.55, 506.90] 0.80 [-0.85, 2.70] 4/7 0.40 [-3.25, 1.80]
chat / fcpMs 92.00 [88.00, 92.00] 92.00 [90.00, 92.00] 0.00 [-2.00, 6.00] 3/4 4.00 [4.00, 4.00]
chat / firstRowsPaintMs 372.00 [366.00, 374.00] 368.00 [366.00, 374.00] 0.00 [-8.00, 4.00] 5/4 -4.00 [-4.00, 6.00]
chat / liveHistoryAppliedMs 807.20 [796.95, 818.25] 808.50 [795.20, 820.35] 1.80 [-10.10, 11.80] 4/7 6.90 [-7.85, 25.85]
chat / loafBlockingMs 115.00 [108.50, 126.00] 107.00 [101.00, 125.50] -4.00 [-18.00, 5.00] 7/4 -7.00 [-21.00, 11.00]
chat / cls 0.000265 [0.000265, 0.000265] 0.000265 [0.000265, 0.000265] 0.000000 [0.000000, 0.000000] 0/0 0.000000 [0.000000, 0.000000]
dashboard / helloReceivedMs 498.10 [496.80, 501.85] 497.70 [496.75, 500.45] -0.40 [-6.00, 6.65] 6/5 1.60 [-5.10, 4.75]
dashboard / firstPostHelloRpcMs 502.60 [501.85, 507.45] 502.70 [501.55, 505.80] -0.40 [-5.75, 6.65] 6/5 1.60 [-5.25, 4.35]
dashboard / fcpMs 88.00 [86.00, 90.00] 92.00 [88.00, 94.00] 4.00 [-2.00, 8.00] 3/7 -4.00 [-4.00, 2.00]
dashboard / firstRowsPaintMs — [—, —] — [—, —] — [—, —] 0/0 — [—, —]
dashboard / liveHistoryAppliedMs 795.00 [784.05, 803.65] 782.40 [778.00, 794.95] -3.80 [-16.95, 14.50] 6/5 -7.40 [-17.15, 10.60]
dashboard / loafBlockingMs 121.00 [117.00, 131.50] 93.00 [91.00, 110.00] -23.00 [-36.50, -7.00] 9/2 1.00 [-5.00, 5.00]
dashboard / cls 0.000265 [0.000265, 0.000265] 0.000265 [0.000265, 0.000265] 0.000000 [0.000000, 0.000000] 0/0 0.000000 [0.000000, 0.000000]

Admission flags (accepted +90/+60 ms paint bounds applied): []. Chat FCP/first rows accept up to +90 ms paired median; dashboard up to +60 ms. All deltas remain visible. Other overlapping-IQR mixed-sign rises are noise, not harm.

All real-Gateway A/A and A/B paired deltas

AA / chat

Pair helloHandledMs fcpMs firstPaintedRowsMs finalRowsDomMs loafBlockingMs cls
1 224.27 199.28 -168.03 24.47 -39.60 0.000000
2 -304.15 46.23 48.15 -139.15 -44.50 0.000000
3 323.42 12.60 11.92 308.92 45.80 0.000058
4 -90.46 -41.95 -40.06 -229.36 -79.90 0.000000
5 54.88 90.98 87.98 80.28 44.00 0.000000
6 -336.32 20.35 20.08 -336.02 -29.80 -0.000058
7 34.14 256.53 255.84 206.94 33.60 0.000000
8 -311.44 74.06 76.06 -17.94 -56.60 0.000000
9 30.87 59.68 60.07 120.77 18.80 0.000000
10 -325.19 138.57 140.01 -163.89 -36.20 0.000000
11 28.86 134.92 135.96 34.16 27.10 0.000000

AA / dashboard

Pair helloHandledMs fcpMs firstPaintedRowsMs finalRowsDomMs loafBlockingMs cls
1 21.79 -12.41 -72.11 104.49 -0.10 0.000000
2 49.55 31.47 32.05 201.15 -15.10 -0.000029
3 -247.15 188.76 -244.05 -229.25 28.00 0.000087
4 -210.04 -86.58 -84.04 -313.54 12.30 0.000000
5 79.79 26.57 27.89 24.09 53.10 0.000000
6 -194.10 20.85 19.90 -277.30 7.10 0.000021
7 59.32 -91.90 -91.88 21.12 84.90 0.000087
8 -14.13 2.71 4.07 101.17 -30.00 -0.000029
9 -20.67 41.59 43.93 -47.17 -26.20 0.000000
10 -75.73 -81.62 -79.93 -126.53 -63.60 -0.000087
11 28.45 -12.45 -11.95 63.45 47.50 0.000087

AB / chat

Pair helloHandledMs fcpMs firstPaintedRowsMs finalRowsDomMs loafBlockingMs cls
1 -13.76 56.15 55.84 -796.56 -14.40 -0.000087
2 -226.13 -50.79 -51.93 -388.63 -30.10 -0.000087
3 77.64 61.27 59.84 -311.86 42.00 -0.000087
4 -0.77 -99.04 -100.07 -419.87 -60.50 -0.000029
5 50.44 132.64 132.04 -544.66 -8.00 -0.000029
6 7.46 -134.14 -135.94 -659.14 -65.50 -0.000087
7 122.93 -19.44 -16.07 -408.67 39.70 -0.000087
8 -230.32 25.12 24.08 -396.62 -44.50 -0.000029
9 39.53 14.00 15.93 -352.07 5.30 -0.000029
10 -25.54 -102.51 -100.04 -456.94 -49.80 -0.000087
11 129.28 -7.27 -4.12 -407.72 69.90 -0.000087

AB / dashboard

Pair helloHandledMs fcpMs firstPaintedRowsMs finalRowsDomMs loafBlockingMs cls
1 10.81 53.60 56.11 -619.79 -10.70 -0.000029
2 140.73 157.71 156.13 -469.87 17.20 -0.000173
3 -27.13 -210.44 -212.13 -721.03 -35.50 -0.000087
4 -154.52 -126.92 -127.92 -691.02 -81.60 -0.000087
5 304.82 57.51 56.02 -576.48 45.50 -0.000115
6 -144.84 -96.36 -95.84 -680.34 -72.60 -0.000087
7 278.87 24.23 23.87 -584.03 17.10 -0.000173
8 -34.10 103.38 104.10 -648.30 -45.30 -0.000115
9 162.58 181.92 183.78 -567.72 73.00 -0.000115
10 -191.05 -45.86 -43.95 -840.15 -37.60 -0.000101
11 176.37 157.60 159.77 -506.33 13.10 -0.000029
All native A/A and A/B paired deltas

AA / chat

Pair helloReceivedMs firstPostHelloRpcMs fcpMs firstRowsPaintMs liveHistoryAppliedMs loafBlockingMs cls
1 0.70 0.40 4.00 -4.00 6.90 -10.00 0.000000
2 -0.10 -0.50 4.00 -48.00 9.70 -47.00 0.000000
3 15.80 17.00 8.00 -4.00 29.00 -6.00 0.000000
4 1.10 1.30 4.00 8.00 -22.70 14.00 0.000000
5 -4.80 -5.70 8.00 0.00 -44.20 -23.00 0.000000
6 1.50 1.70 4.00 4.00 22.70 16.00 0.000000
7 -0.60 -0.80 4.00 8.00 -10.70 -7.00 0.000000
8 -16.30 -18.00 4.00 -4.00 -5.00 -67.00 0.000000
9 -6.80 -6.90 4.00 -4.00 41.00 -19.00 0.000000
10 1.80 3.00 0.00 12.00 42.90 38.00 0.000000
11 1.90 1.90 -4.00 -16.00 5.20 8.00 0.000000

AA / dashboard

Pair helloReceivedMs firstPostHelloRpcMs fcpMs firstRowsPaintMs liveHistoryAppliedMs loafBlockingMs cls
1 5.10 4.80 -4.00 — 14.30 -4.00 0.000000
2 -11.10 -11.20 -4.00 — -23.50 1.00 0.000000
3 -11.00 -11.70 -8.00 — -12.00 2.00 0.000000
4 4.60 4.10 -4.00 — -13.50 -55.00 0.000000
5 1.70 1.90 8.00 — 23.30 7.00 0.000000
6 1.30 1.60 4.00 — -0.60 10.00 0.000000
7 4.90 4.60 0.00 — 6.90 3.00 0.000000
8 19.10 19.40 0.00 — 22.60 8.00 0.000000
9 -11.60 -12.00 4.00 — -7.40 -80.00 -0.007802
10 0.80 0.70 -8.00 — -20.80 -6.00 0.000000
11 1.60 1.30 -4.00 — -24.00 -1.00 0.000000

AB / chat

Pair helloReceivedMs firstPostHelloRpcMs fcpMs firstRowsPaintMs liveHistoryAppliedMs loafBlockingMs cls
1 7.30 7.90 -4.00 8.00 12.70 -4.00 0.000000
2 0.80 1.60 0.00 12.00 24.70 31.00 0.000000
3 0.60 0.80 8.00 -12.00 -5.80 -12.00 0.000000
4 -16.90 -18.30 12.00 -8.00 -15.00 -41.00 0.000000
5 3.80 3.80 -4.00 -4.00 0.10 -14.00 0.000000
6 -0.80 -0.60 4.00 0.00 10.90 2.00 0.000000
7 0.70 0.70 -4.00 4.00 1.80 -22.00 0.000000
8 -1.10 -1.10 12.00 4.00 5.80 8.00 0.000000
9 -5.40 -5.70 0.00 0.00 -14.40 -1.00 0.000000
10 11.20 12.30 0.00 -8.00 46.10 11.00 0.000000
11 0.40 1.00 0.00 -12.00 -159.10 -45.00 0.000000

AB / dashboard

Pair helloReceivedMs firstPostHelloRpcMs fcpMs firstRowsPaintMs liveHistoryAppliedMs loafBlockingMs cls
1 10.50 10.90 0.00 — 24.90 -23.00 0.000000
2 -2.70 -2.90 4.00 — -13.20 -22.00 0.000000
3 14.50 16.00 8.00 — 18.90 45.00 0.000000
4 -9.90 -10.10 8.00 — -13.30 -64.00 0.000000
5 2.80 2.40 12.00 — -20.60 -6.00 0.000000
6 23.20 23.00 4.00 — 19.50 3.00 0.000000
7 -31.20 -32.10 4.00 — -59.20 -41.00 0.000000
8 -9.20 -8.60 8.00 — -3.80 -26.00 0.000000
9 0.20 0.40 -12.00 — -39.50 -32.00 0.000000
10 -0.40 -0.40 -4.00 — 10.10 -42.00 0.000000
11 -2.80 -2.70 -4.00 — 5.30 -8.00 0.000000

Pre-rebase Proof (ea19d12)

AWS Crabbox cbx_d49c37fec9aa, c7a.4xlarge, exact head ea19d12c9081; pinned main 091884c4c789. Both Chromium and WebKit are installed. These are validation wall times, not performance measurements. Changed-file costs use pnpm test <file> --maxWorkers=1.

Check Result Wall time
Focused consumers, 13 files 405/405 passed 16.81 s
Recovery owner 14/14 passed 7.05 s
Native held-connect cache/live fidelity + offline search 1/1 passed 29.09 s
Completed assistant real-Gateway history 1/1 passed 194.39 s, including runtime preparation
Warm boot 10/10 passed 52.89 s
Chat send 107/107 passed 6.08 s
Terminal recovery 19/19 passed 5.65 s
Chat state 90/90 passed 5.88 s
Markdown rendering 14/14 passed 5.23 s
Full UI e2e, complete run 886 passed / 2 failed / 3 skipped files; 3,370 passed / 2 failed / 4 skipped tests. Both failures reproduce on pinned main; complete file list below. 5560.67 s
check-changed Exit 137; all typechecks, formatting, and guards passed. The three dead exports and core-lint kernel OOM reproduce on pinned main. 1284.56 s
Exact-head CI Successful run 41290381048; final live rollup has only successful/non-blocking checks and no pending/failing result Green
Fresh full-branch autoreview through P2 Clean on this exact head Clean

All three touched e2e files also pass in the full-suite context: native cached-text/offline-search fidelity, warm boot (10 cases), and completed assistant real-Gateway history. The history-capture test waits for the existing authoritative transcriptReady signal before recording/flushing its snapshot; “not loading” also admits an idle pane. Content, order, draft, empty-bubble, and delta-cursor assertions remain unchanged.

Pinned-main classification: AWS cbx_22d2c8eeaa60, c7a.4xlarge, checked out exact main 091884c4c7895512ad700f27b96a5065207c2b25 before installation. Only the failed components/files were run, with each e2e file using node scripts/run-vitest.mjs <file> --maxWorkers=1 and both browser engines installed. Every red result reproduces independently on this baseline.

Red result Final candidate evidence Pinned-main control
Dead exports PendingContextEngineTurn, allowProviderModels, materializeSessionRepositoryWorkspaceOnGateway; all outside changed paths Exact same three symbols; exit 1, 131.35 s
Core lint Kernel OOM, exit 137; killed process anonymous RSS 18,026,556 KiB Kernel OOM, exit 137; anonymous RSS 19,155,956 KiB; 509.41 s
ui/src/e2e/chat-outbox-migration.e2e.test.ts:71 Initial roster readiness timeout at test line 162 Same case, same Control UI initial roster did not finish loading and rendering error and 10 s wait; 1 failed / 1 passed; 43.45 s
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts:315 Crabline private-path permission rejection during fixture transport readiness Same case and Private mutation boundary is writable by another POSIX principal error; 1 failed / 1 passed; 260.28 s including runtime preparation

These are inherited/environment failures, not passing replays. No permission guard or baseline was weakened. Both AWS leases are released with cleanup complete and no host remaining; the candidate's final loopback-listener check was empty. No local Gateway was started.

The oversized regression is red on the unbounded implementation and green with the 64 KiB write bound: an 80,000-byte UTF-8 reply (under 64 Ki UTF-16 code units) is not retained, while both mounts show its preview then automatically recover the full live reply. The persistence/privacy and native held-connect equality regressions fail on the original runtime. The extended offline-tail search test is red on the prior retained-recovery implementation and green here; it also protects operator-scope invalidation. No test-only production seam is added.

Complete full UI e2e file results

Under each project/directory below, names omit the common .e2e.test.ts suffix; .tsx filenames are shown in full. Each entry is one file result.

Counts: pass=886, fail=2, skip=3.

FAIL ui-e2e-bundled ui/src/e2e/
chat-outbox-migration

FAIL ui-e2e-serial extensions/qa-lab/src/
control-ui-automation-management.real-gateway

PASS ui-e2e-bundled ui/src/
app.workshop-contract

PASS ui-e2e-bundled ui/src/e2e/
about
action-foreground
activity-answer-candidates
activity-current-work
activity-polish
activity-presence-connections
activity-run-inspector
activity-run-inspector.collection
activity-session-feed.capture
activity-session-git
activity-session-recaps
activity-session-refresh
activity-session-subagents
activity-summaries
agent-channel-runtime-status
agent-config-save
agent-creation-immediate
agent-file-lifecycle
agent-github-device-authorization
agent-identity-reconnect
agent-model-fallback-ownership
agent-page-scope
agent-select-avatar-timeout
agent-select-layout
agent-switch-roster
app-chrome-interaction
appearance-accent-selection
appearance-control-layout
appearance-settings-defaults
approval-bootstrap
approval-flow
approval-page
approvals-grants
assistant-panel-context
avatar-initial-emoji
background-presentation
background-startup
board-mcp-app
board-sandbox-theme
board-split-transcript
bootstrap-ui-preferences
browser-auth-recovery
browser-bootstrap
browser-capabilities
browser-dictation-status
browser-panel-width
browser-route-handoff
browser-screenshot-body-cancel
browser-stream-startup
browser-tab-preview-urls
browser-talk-microphone-lifetime
browser-talk-ordering
browser-talk-start-stop
browser-talk-start-stop.webrtc-sdp
browser-talk-voice-selection
browser-talk-webkit-error
catalog-request-admission
channel-wizard-option-contrast
channels-whatsapp-logout
chat-active-turn-recovery
chat-agent-run-transcript
chat-async-questions
chat-attachment-announcement
chat-attachment-containment
chat-attachment-errors
chat-attachment-focus
chat-attachment-menu
chat-attachment-read-lifecycle
chat-attachment-remove
chat-attachment-spacing
chat-attributed-identity
chat-audio-transcript
chat-background-invalidation
chat-boot-composer
chat-boot-optional-requests
chat-boot-render-storm
chat-bubble-activity
chat-child-attention
chat-ci-details
chat-cli-history-redaction
chat-close-all
chat-code-block-fences
chat-cold-load-anchor
chat-collapsed-reply-reveal
chat-comment-draft-recovery
chat-comment-lifecycle
chat-comment-pane-retirement
chat-composer-accessory-focus
chat-composer-boundary
chat-composer-capability-menu
chat-composer-capability-menu-height
chat-composer-catalog
chat-composer-display-snapshot
chat-composer-focus
chat-composer-input-measurement
chat-composer-outbox
chat-composer-picker-layout
chat-composer-pointer-activation
chat-composer-predictions
chat-composer-reconnect
chat-composer-redesign
chat-composer-reverse-tab
chat-composer-size
chat-composer-undo-redo
chat-content-copy
chat-context-attachment
chat-continue-in-terminal
chat-daybreak-controls
chat-details-changes
chat-details-loading
chat-details-panel-navigation
chat-details-pr-loading
chat-details-scrollbar
chat-diagrams
chat-emoji
chat-empty-assistant
chat-error-details
chat-file-editor-recovery
chat-file-links
chat-flow.active-run-follow-ups
chat-flow.automation-prompts
chat-flow.clipboard
chat-flow.composer-shortcuts
chat-flow.dynamic-catalog
chat-flow.history-issuance
chat-flow.history-recovery
chat-flow.image-handoff
chat-flow.local-media-policy
chat-flow.media-files
chat-flow.messaging
chat-flow.model-picker-refresh
chat-flow.models-reasoning
chat-flow.navigation-presentation
chat-flow.pending-settings
chat-flow.queue-edit
chat-flow.queue-reorder
chat-flow.reactions
chat-flow.session-start
chat-flow.sidebar-presentation
chat-flow.stream-reconciliation
chat-flow.streaming
chat-flow.task-suggestions
chat-footer
chat-github-publication
chat-github-publication-guest
chat-goal-complete-resume
chat-goal-elapsed
chat-goal-recovery
chat-goal-replace
chat-guardian-review
chat-header-axis
chat-header-connection
chat-header-owner-presence.capture
chat-header-session-lineage
chat-header-subagents
chat-header-system-info
chat-heartbeat-activity-rollup
chat-history-loading
chat-history-prepend-anchor
chat-html-preview
chat-html-preview-policy
chat-image-approval-loading
chat-image-lightbox
chat-image-loading
chat-image-virtual-remount
chat-incognito-expired
chat-interrupted-history
chat-interrupted-reply
chat-json-tree
chat-learned-notice
chat-loading-deadlines
chat-markdown-alignment
chat-markdown-table-interactions
chat-media-picker
chat-mention-cache
chat-mention-popover
chat-mention-search
chat-menu-idle-warmup
chat-mermaid-alternatives
chat-mermaid-expand
chat-mermaid-load-errors
chat-message-actions
chat-metadata-observation
chat-mobile-bubble-margin
chat-mobile-environment
chat-mobile-latest-clearance
chat-model-controls
chat-model-picker-composition
chat-model-picker-touch
chat-model-runtime
chat-model-selection-recovery
chat-model-wait
chat-motion
chat-native-runtime-recovery
chat-native-turn-activity
chat-nested-tool-presentation
chat-offline-session-title
chat-omitted-image-placeholder
chat-only-model
chat-outbox-capacity
chat-outbox-payloads
chat-outbox-recovery
chat-outbox-reload
chat-output-image
chat-pane-state-snapshot
chat-panel-layout
chat-pasted-text-show-in-text-field
chat-permission-refresh
chat-person-reference
chat-picker-interaction-contract
chat-placement-recovery
chat-plugin-steering
chat-position-rail
chat-position-rail-layout
chat-position-rail-split
chat-position-rail-visibility
chat-pr-publication-state
chat-pr-refresh-replay
chat-prepared-identity
chat-prepared-silence
chat-provider-policy-notice
chat-provider-review
chat-pull-requests
chat-queue-edit-conflict-recovery
chat-queue-reorder-recovery
chat-queue-update-reload
chat-quota-pill-93041
chat-rail-columns
chat-reasoning-stream
chat-reasoning-stream-follow
chat-reasoning-visibility
chat-recovered-search
chat-reply-attribution
chat-reply-preview-recovery
chat-resize-anchor
chat-responsive
chat-retained-pane-escape
chat-retained-pane-eviction
chat-retained-pane-hydration
chat-retry-failure
chat-run-lifecycle
chat-saved-attempt-navigation
chat-scope-read-gates
chat-scroll
chat-scroll-dock
chat-selection-to-main
chat-send-ack-ownership
chat-send-pending-handoff
chat-session-activity
chat-session-companion-clear
chat-session-companion-composer
chat-session-companion-focus
chat-session-companion-footer
chat-session-companion-manual-open-focus
chat-session-companion-retry
chat-session-diff
chat-session-discussion-toggle
chat-session-entry
chat-session-file-pdf
chat-session-prefetch-gating
chat-session-read-coalescing
chat-settings-disconnect
chat-side-chat-typography
chat-side-panel-clearance
chat-side-panel-helper
chat-sidebar-open-target
chat-sidebar-panel-contract
chat-skill-library
chat-skill-references
chat-slash-command-ranking
chat-snapshot-route
chat-snapshot-text-fidelity
chat-source-previews
chat-split-close-focus
chat-split-dashboard-face
chat-split-narrow
chat-split-saved-owner
chat-stale-busy-follow-up
chat-startup-priority
chat-startup-progress
chat-startup-wait
chat-steer-deferred-custody
chat-stop-response-ownership
chat-subagent-surfaces
chat-subagent-waiting
chat-submit-responsiveness
chat-subscription-recovery
chat-svg-download
chat-swarm-describe-churn
chat-swarm-history
chat-swarm-lifecycle
chat-system-events
chat-terminal-error-reload
chat-text-attachment
chat-text-selection
chat-thinking-arguments
chat-tool-output-fidelity
chat-tool-steering-skip
chat-tool-turn-outcome
chat-transcript-disclosure-anchor
chat-transcript-focus
chat-uploaded-image-recovery
chat-user-avatar-alignment
chat-user-bubble-disclosure
chat-versions
chat-video-attachment-preview
chat-video-compression
chat-video-gallery
chat-voice-transcript
chat-widget-autosize
chat-widget-guest
chat-widget-retention
chat-widget-sandbox
chat-widget-scroll
chat-worked-for-visualization
chat-workspace-directory-race
chat-workspace-downloads
chat-workspace-files
chat-yield-acknowledgment
chat-youtube-embed
chrome-extension-status
claude-sessions
cloud-session-disk-space
cloud-session-placement-identity
cloud-workers-settings
cloud-workers-snapshots
cloud-workspace-conflict
codex-sessions
command-palette-avatars
command-palette-composition
command-palette-create
command-palette-drop
command-palette-first-open
command-palette-images
command-palette-mentions
command-palette-shortcuts
community-invite-showing
compact-identity-menu
composer-control-ink
composer-height
composer-layout
composer-text-readability
config-controls-visual
config-enum-controls
config-form-defaults
config-form-guidance
config-form-integrity
config-map-removal-names
config-number-controls
config-open-file-feedback
config-quick-thinking-persistence
config-required-fields
config-safe-write
connection-settings
control-ui-boot-capture
control-ui-credentials
control-ui-route-readiness
cron-descriptions
cron-filters
cron-inventory
cron-loading
cron-one-shot-next-run
cron-remove
cron-run-completion
cron-run-feedback
cron-run-filter-typography
cron-run-suppression
cron-search
cron-select-values
cron-trigger-authoring
cron-trigger-filter
cron-validation-focus
csp-jitless
curated-settings-defaults
custodian-auto-setup
custodian-channel-onboarding
custodian-event-nudge
custodian-onboarding-locale
custodian-panel-toggle
custom-snooze
dashboard-cold-load
dashboard-final-reply-recovery
dashboard-fullscreen
dashboard-gallery
dashboard-presentation-defaults
dashboard-session-retention
dashboard-website
dashboards-list-demand
debug-diagnostics
debug-overlay-position
debug-tray-polling
decision-model-settings
desktop-document-mode
desktop-keyboard
desktop-panel
desktop-panel-abandonment
desktop-panel-credentials
desktop-panel-fullscreen
desktop-picture-in-picture
device-alias-rename
device-binding-state
device-scope-upgrade
device-token-reconnect
dynamic-route-loader-count
exec-approvals-dirty-target-switch
external-session-catalogs
file-drop-guard
gateway-foreground-recovery
gateway-retry-feedback
gateway-startup-backoff
gateway-status
github-link-hovercard
github-panel
guest-self-profile
guest-session-controls
guest-session-rename
guest-welcome-landing
home-attention
home-command-recovery
identity-activity-links
inference-setup-gate
interaction-surfaces
keyboard-shortcuts-focus
lazy-custom-element-recovery
lazy-route-error-layout
link-favicons
link-hover-preview
link-reader-checks
link-reader-loading
linked-session-navigation
lobster-pet
login-gate
logs-autofollow
logs-layout
logs-scroll
managed-image-actions
managed-media-base-path
mantis-chat-proof
markdown-progress-adversarial
meetings
memory-overview-plugin
memory-search-plugin
memory-settings-defaults
memory-settings-engine
meta-muse-picker
mobile-chat-header
mobile-chat-session-menu
mobile-inbox-sheet
mobile-new-conversation
mobile-pairing
mobile-panel-auto-open
mobile-session-panel-persistence
mobile-sheet-motion
mobile-shell-geometry
mobile-sidebar-session-menu
modal-actions
model-agent-scoping
model-alias-display
model-catalog-dashboard
model-catalog-partial-refresh
model-defaults-capabilities
model-defaults-recovery
model-provider-login
model-provider-read-errors
model-provider-usage-outcomes
model-providers
model-providers-account-status
model-providers-help
model-providers-layout
model-providers-profile-outcomes
model-providers-progressive
model-providers-studio-shape
model-providers.discovery
model-setup
model-setup-activation-feedback
model-setup-cancel
model-setup-codex-sign-in
model-setup-explicit
model-setup-lmstudio
model-setup-reconnect
model-setup-recovery
model-setup-replacement
model-sign-in-unresponsive-gateway
mount-fallback
native-conversation
native-desktop-appearance
native-desktop-gateways
native-desktop-titlebar
native-device-settings
native-embed-settings
native-link-routing
native-nav-responsive-layout
native-nav-sidebar-toggle
native-page-header-clearance
native-plugin-navigation
native-plugin-ui
native-report-widget
native-session-discovery-settings
native-session-sidebar
new-session-page.agent-identity
new-session-page.attachment-url-lifecycle
new-session-page.capability-menu
new-session-page.catalog-bootstrap
new-session-page.catalog-reconnect
new-session-page.cloud-dispatch
new-session-page.cloud-os
new-session-page.cloud-size
new-session-page.cloud-startup
new-session-page.cloud-startup-failure
new-session-page.cloud-startup.recovery
new-session-page.config-startup
new-session-page.configured-defaults
new-session-page.connect-machine
new-session-page.device-dispatch
new-session-page.device-folder
new-session-page.device-stop
new-session-page.draft-handoff
new-session-page.durable-write-teardown
new-session-page.early-submit
new-session-page.empty-workspace
new-session-page.environment-metadata
new-session-page.environment-picker-loading
new-session-page.fast-mode-preferences
new-session-page.github-projects
new-session-page.host-remediation
new-session-page.hosted-environment
new-session-page.incognito-navigation
new-session-page.input-latency
new-session-page.instant-thread
new-session-page.keyboard
new-session-page.model-catalog
new-session-page.model-picker-spacing
new-session-page.native-destinations
new-session-page.operator-scopes
new-session-page.place-preferences
new-session-page.places
new-session-page.places-live
new-session-page.projects-places
new-session-page.prompt-attachments
new-session-page.provisional-navigation
new-session-page.responsive-welcome
new-session-page.revisit
new-session-page.suggested-cloud
new-session-page.title
new-session-page.transition
new-session-page.workspace-memory
new-session-page.workspace-validation
new-session-pending-sidebar
new-session-session-writer
new-session-sidebar-visibility
nostr-settings-plugin
operator-admin
people-activity-card
people-activity-filters
personal-background
personal-session-groups
placement-error-unicode
plugin-bundled-view-recovery
plugin-inline-view
plugin-tab-slugs
plugins-config-mutation
plugins-credentials
plugins-help
plugins-hub-navigation
plugins-request-ownership
plugins-schema-controls
plugins-settings-admin
plugins-settings-composition
plugins-settings-keyboard
plugins-settings-refresh
portals-layout
profile-page
pwa-manifest-credentials
question-flow
question-guest
required-worker-routing
resize-handles
route-css
screen-requester-routing
secret-reveal-focus
session-active-resources
session-automation-inspection
session-catalog-involvement
session-catalog-pending-host
session-channel-hovercard
session-color
session-context-breakdown
session-context-meter
session-dashboard
session-dashboard-active-panel
session-dashboard.grant-failure
session-detail-values-keyboard
session-details-background-work
session-details-progress
session-github-preview
session-kinds
session-link-not-found
session-link-reconnect
session-list-filter
session-list-row-events
session-management.account-label
session-management.archive
session-management.archive-automation
session-management.archive-batch
session-management.archive-undo
session-management.archived-actions
session-management.bulk-delete-scope
session-management.copy-session-id
session-management.created-sort
session-management.draft-indicator
session-management.filtered-errors
session-management.group-defaults
session-management.group-identity
session-management.group-return
session-management.groups
session-management.hidden-run-read
session-management.mutation-scope
session-management.nested-archive
session-management.new-group
session-management.operator-scopes
session-management.promotion
session-management.queue
session-management.rename
session-management.rename-composition
session-management.rename-identity
session-management.sidebar
session-management.sidebar-reconnect
session-management.trailing-state
session-management.unread
session-manager-history
session-mention-involvement
session-observer-model-catalog-recovery
session-owner-assignment
session-owner-filter-empty-section
session-owner-filter-guest-default
session-owner-filter-header
session-owner-filter-keyboard
session-owner-first
session-ownership
session-person-grouping-presence
session-placement.menu
session-placement.move
session-prefetch
session-progress-disclosure
session-progress-hovercard
session-progress-hovercard-catalog
session-progress-hovercard-commentary
session-progress-hovercard.navigation
session-progress-live-placement
session-progress-motion
session-progress-polish
session-progress-preference
session-progress-refresh
session-progress-scroll
session-progress-startup
session-progress-submit
session-progress-widget
session-pull-requests
session-reconnect-existence
session-roster-event-scope
session-runtime-freshness
session-scoped-delivery
session-shortcuts
session-sources
session-status-keyboard
session-storage-settings
session-suggestions
session-transcript-search
session-viewer-presence
sessions-navigation-identity
settings-agent-selector
settings-config-recovery
settings-exit-layout-shift
settings-layout
settings-media-permission
settings-message-width
settings-prefs-reconnect
settings-redirect-history
settings-reload-devices-draft
settings-search-focus
settings-search-keyboard
settings-typography-search
settle
shell-presentation
sidebar-agent-first
sidebar-attention-scope
sidebar-background-work
sidebar-catalog-scope
sidebar-child-expansion
sidebar-complete-roster
sidebar-cron-inventory
sidebar-customization
sidebar-deletion-invalidation
sidebar-dev-branch
sidebar-inbox-latency
sidebar-interactions
sidebar-involvement
sidebar-load-more
sidebar-name-marquee
sidebar-new-conversation
sidebar-outbox
sidebar-pages-archive
sidebar-per-tab-visibility.capture
sidebar-pin-placement
sidebar-pin-priority
sidebar-pinned-agents
sidebar-profileless-scope
sidebar-pull-requests
sidebar-rail
sidebar-rail-alignment
sidebar-rail-toggles.capture
sidebar-refresh-availability
sidebar-roster
sidebar-selection-overflow
sidebar-session-stability
sidebar-settings
sidebar-shortcut-badges
sidebar-show-all
sidebar-transient-surfaces
sidebar-users-filter
skills-any-bin-requirements
skills-clawhub-external-install
skills-library
skills-owner-selection
solo-widget-chrome
stale-build-recovery
subagent-task-notice
subagents-panel
systems-workspace
team-scale-cold-load
terminal-docking
terminal-embedded
terminal-page
terminal-panel-layout
terminal-repaint
terminal-upload
theme-background
theme-boot
theme-branding-proof
theme-muted-contrast
theme-plugin-background
theme-selection-defaults
theme-surfaces
theme-typography
tool-titles
tooltip-first-activation
transcript-library
tweet-card
update-coalesced
update-confirmation
update-git-revisions
update-lifecycle
update-native-authority
update-run
update-stale-git-refresh-proof
update-triage
updates-settings
uploads-policy
usage-calendar-boundaries
usage-cost-analysis
usage-export-recovery
usage-known-zero-cost
usage-overview
usage-query-recovery
usage-reconnect
usage-session-unicode
warm-boot
warm-history-subscription
workboard-board-widget-layout
workboard-lazy-page
workboard-locale
worker-inference
workspace-panel-startup
worktrees
x-plugin

PASS ui-e2e-bundled ui/src/pages/agents-home/
templates-catalog

PASS ui-e2e-bundled ui/src/pages/chat/
critical-observer-notice

PASS ui-e2e-bundled ui/src/pages/chat/components/
chat-clawhub-card

PASS ui-e2e-bundled ui/src/pages/cron/
run-transcript

PASS ui-e2e-bundled ui/src/pages/lobsterdex/
lobsterdex-page

PASS ui-e2e-bundled ui/src/pages/plugins/
install-progress
plugin-banners
plugin-deprecated-sdk
plugin-overview
plugin-skills
plugins
plugins-catalog
plugins-lifecycle
plugins-runtime

PASS ui-e2e-bundled ui/src/pages/secrets/
secrets

PASS ui-e2e-bundled ui/src/pages/templates/
creator-review

PASS ui-e2e-bundled ui/src/pages/workboard/
workboard
workboard-native-bundle
workboard-notes
workboard-routing
workboard-scroll
workboard-selection-focus
workboard-sidebar
workboard-status-persistence

PASS ui-e2e-bundled ui/src/test-helpers/
control-ui-e2e-readiness

PASS ui-e2e-serial extensions/qa-lab/src/
control-ui-media-transcript.real-gateway
control-ui-openclaw-delegation.real-gateway
session-host-command-state.real-gateway

PASS ui-e2e-serial ui/src/e2e/
chat-flow.catalog-bootstrap
chat-stream-runtime-budgets
control-ui-auth-transports
device-alias-rename.real-gateway
guest-personal-groups.real-gateway
logs-lifecycle
profile-page.real-gateway
session-pr-reader-lifetime.real-gateway
session-progress-hovercard.real-gateway
sidebar-running-counts.real-gateway
task-pull-requests.real-gateway
usage-sessions-owner-attribution
worker-initial-setup.real-gateway

PASS ui-e2e-serial-standalone ui/src/e2e/
activity-run-inspector.real-gateway
agent-file-lifecycle.real-gateway
background-work.real-gateway
build-info-unicode
chat-agent-avatar.real-gateway
chat-collaborator-scroll.real-gateway
chat-completed-assistant.real-gateway
chat-composer-websearch-kill-switch.real-gateway
chat-daybreak.real-gateway
chat-html-csp.real-gateway
chat-html-publication.real-gateway
chat-loading-geometry
chat-loading-performance.real-gateway
chat-managed-media-order.real-gateway
chat-project-media.real-gateway
chat-reconnect-continuity.real-gateway
chat-session-companion-private.real-gateway
chat-session-diff-folding.real-gateway
chat-stop-finished-run.real-gateway
chat-stop-long-turn.real-gateway
chat-stop-owned-exec.real-gateway
chat-thinking-metadata.real-gateway
chat-tts-supplement.real-gateway
chat-wait-clock.real-gateway
chat-widget-sandbox.real-gateway
command-palette-catalog.real-gateway
command-palette-search.real-gateway
composer-draft-store
composer-recovery-fences
config-form.real-gateway
config-raw-save
control-ui-shell-routing
cron-duration-save.real-gateway
cron-human-owner.real-gateway
device-platform-family.real-gateway
initial-connect-splash
locale-offline-retry
mcp-app-conformance
memory-overview-source
model-api-keys.real-gateway
model-catalog-partial-refresh.real-gateway
model-picker-search.real-gateway
mount-recovery
native-notifications-loading
plugin-inline-view.real-gateway
presentation-primitives
provider-browser-login.real-gateway
quiet-automations.real-gateway
quota-reset-status.real-gateway
session-management.child-failures
session-management.delete
session-progress-runtime
session-roster-request-rate.real-gateway
settings-loading-skeletons
shell-module-loading
sidebar-account-footer
sidebar-boot-imports
stale-build-recovery.production
terminal-fonts
terminal-runtime

PASS ui-e2e-serial-standalone ui/src/pages/plugins/
plugins-base-path

PASS ui-e2e-serial-standalone ui/src/pages/workboard/
workboard-distribution

PASS ui-e2e-standalone ui/src/e2e/
board-fixture
boot-module-boundaries
control-ui-build-publication
control-ui-stale-build-reload
phone-stale-build-recovery
post-deploy-session-entry
service-worker-update

SKIP ui-e2e-serial-standalone ui/src/e2e/
chat-steer-deferred-custody.real-gateway
deepseek-search.real-gateway
desktop-resize.real-gateway

Size and Ownership

Scope: 24 files: 11 UI runtime owners, eight test files and the test-host adapter, three existing-rig files, and one exact test-line allocation.

UI runtime on the current rebased head: +67 lines; diagnostics in the existing rig: +66 lines. Requested production-stat filter: 267 additions / 99 deletions = +168 (also includes .test.tsx +28, allocation +2, proof documentation +5). Exact test growth/allocation: +226 for persistence/privacy, bounded UTF-8 fallback, offline search, and native cache/live fidelity, after consolidating existing media/source cases.

Growth serves the retained-display/source contract, offline full-media ordering, privacy exclusions, and the 64 KiB admission bound. Superseded live-loader-only render guards and the renderer-local recovery selection are removed; rendering and search consume the same existing recovery owner. Accepted transcript recovery produces display facts; the API read-through loader remains unchanged. The existing scoped snapshot is the sole cache owner. The rig adopts main’s canonical long-Markdown fixture rather than retaining a second fixture flag/path.

Synthetic Visual Evidence

Final-head warm pair 1, first cached compositor frame (frame-00001.png) on each route; pre-navigation frame 0 is excluded. Baseline ends at item 19 with the truncation marker; candidate already includes item 24 and the review links. The settled baseline/candidate PNGs are byte-identical for each route in this pair. All four captures were inspected in full and contain only synthetic fixture data. Other sidebar, styling, Details, and dashboard settlement remains outside this row-fidelity change. DOM settlement is measured independently from compositor paint; earlier DOM does not imply earlier paint.

Chat before: first cached frame ends at item 19

Chat after: first cached frame includes item 24 and review links

Dashboard before: first cached frame ends at item 19

Dashboard after: first cached frame includes item 24 and review links

@clawsweeper

clawsweeper Bot commented Nov 1, 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 app: web-ui App: web-ui scripts Repository scripts size: L labels Nov 1, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR retains bounded, recovered assistant replies in existing browser snapshots so warm reloads can restore complete rows.

Example: Reload after displaying a 14,000-character assistant reply whose serialized recovery object fits within 64 KiB.

  • Before: The cached row restores the 8,000-character preview and expands after live recovery.
  • After: The cached row restores the previously recovered complete reply while reconnecting.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The production design is focused and owner-aligned, but this intentionally paused experiment has not supplied its required current-head behavior and upgrade 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) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A previously displayed complete assistant reply becomes truncated after reload and later changes height when recovery finishes.
Reason: Preserving already displayed content has clear value, and the maintainer-authored direction explicitly bounds retention and defines performance admission criteria.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this maintainer-authored experiment open and paused as requested; its production approach is coherent, with one small defect in the proof tooling.

Priority: P2
Reviewed head: 596deb526d8e104d1f8f1846f7abb6300ad1f504

Before merge

  • Normalize text-state timestamps to the report clock (P3) - With text fidelity enabled, these samples use the final document’s performance clock. captureReload translates the other event arrays by documentOffsetMs and then replaces probe.timeOrigin, but omits textStates. Whenever the navigation and final-document origins differ, notably the supported multi-document token-admission path, text completion appears at the wrong point relative to paint, RPC, and frame evidence. Add textStates to the existing timestamp-normalization loop.
  • 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

  • [P3] Normalize text-state timestamps to the report clock — scripts/perf/warm-reload-browser-probe.ts:358-359

Tests

  • Missing end-to-end proof: The reviewed head still needs its declared real-Gateway reload/performance evidence and a latest-stable upgrade run preserving settings, drafts, and queued input.
Agent review details

How this fits together

The Control UI receives truncated history and full-message recovery responses from the Gateway, retains scoped display snapshots in browser storage, and renders those snapshots during reload and reconnect.

flowchart LR
  A[Gateway history preview] --> B[Transcript recovery owner]
  C[Full message response] --> B
  B --> D[Scoped row display facts]
  D --> E[Browser snapshot storage]
  E --> F[Chat row renderer]
  A --> F
Loading

Technical review

Best possible solution:

Keep bounded recovery retention in the existing snapshot owner, correct the proof timestamps, and finish the experiment’s declared validation before marking it ready.

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

Current-main recovery retains the full reply only in its expansion map, while persisted snapshots retain the preview; source inspection establishes the reload path, but no target code was executed.

Is this the best way to solve the issue?

The smallest complete production repair records accepted recovery at its existing owner and restores it through existing scoped facts, preserving live revalidation and oversized-reply fallback.

Full review comments:

  • [P3] Normalize text-state timestamps to the report clock — scripts/perf/warm-reload-browser-probe.ts:358-359
    With text fidelity enabled, these samples use the final document’s performance clock. captureReload translates the other event arrays by documentOffsetMs and then replaces probe.timeOrigin, but omits textStates. Whenever the navigation and final-document origins differ, notably the supported multi-document token-admission path, text completion appears at the wrong point relative to paint, RPC, and frame evidence. Add textStates to the existing timestamp-normalization loop.
    Confidence: 0.98

Overall correctness: patch is correct
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit bd10ba2 adds ui/src/pages/chat/session-message-cache.ts:152 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bd10ba29d338; files: ui/src/pages/chat/session-message-cache.ts)

PR surface

Source +53, Tests +196, Docs +4, Other +128. Total +381 across 20 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 72 19 +53
Tests 8 237 41 +196
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 4 140 12 +128
Total 20 453 72 +381

Labels

Label changes:

  • add P2: The change addresses truncated cached replies and visible row expansion during warm reloads, with limited impact on otherwise functioning conversations.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The change addresses truncated cached replies and visible row expansion during warm reloads, with limited impact on otherwise functioning conversations.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

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

  • Publish current-head real-Gateway captures and results against the declared performance criteria, with sensitive details redacted.
  • Provide latest-stable upgrade evidence showing disposable-cache refill and preserved user settings, drafts, and queued input.

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, 9:28 PM ET / November 1, 2026, 01:28 UTC.

@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from 596deb5 to 868405a Compare November 1, 2026 01:34
@steipete steipete changed the title experiment(control-ui): bounded cached row text fidelity [do not merge] fix(control-ui): retain bounded full replies during reload Nov 1, 2026
@steipete
steipete marked this pull request as ready for review November 1, 2026 02:17
@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-01T12:06:01.842909Z df013b1 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.

@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from 868405a to 9dbc39e Compare November 1, 2026 02:36

@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: 9dbc39e9cd

ℹ️ 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 on lines +101 to +105
const retained: AssistantMessageExpansionState | undefined =
cached && cached.source === extractTextCached(message)
? {
status: "loaded",
markdown: extractTextCached(cached.message) ?? "",

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 Include retained full replies in transcript search

After a warm reload while disconnected, the bubble displays the retained full reply, but searching for text beyond its truncated preview hides the message. The retained expansion is resolved only here; chat-transcript-projection.ts still supplies search with expandedAssistantMessages, and messageMatchesSearchQuery in chat-thread-items.ts only checks that map before falling back to the preview. Until a live full-message fetch succeeds, visibly displayed cached text is therefore unsearchable. Have rendering and search consume the same retained recovery state.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from 9dbc39e to 4ef4516 Compare November 1, 2026 06:15
@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from 4ef4516 to 38d997c Compare November 1, 2026 09:32
@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from 38d997c to ea19d12 Compare November 1, 2026 09:48
@steipete
steipete force-pushed the steipete/coldload-cached-row-text-fidelity branch from ea19d12 to df013b1 Compare November 1, 2026 12:04
@steipete
steipete merged commit 4d6617a into main Nov 1, 2026
111 of 114 checks passed
@steipete
steipete deleted the steipete/coldload-cached-row-text-fidelity branch November 1, 2026 12:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…189918)

A warm reload no longer restores a previously expanded long assistant reply as its 8,000-character history preview and then grows it by about 280 px when live recovery finishes. The transcript recovery owner now retains the accepted full display response in the existing scoped row-display facts; the renderer shows it while reconnecting or offline, a changed source preview rejects the stale fact, and normal live revalidation still runs. Server replay and pairing QR data are stripped before retention, and the single facts writer admits a recovered object only up to 64 KiB serialized (larger replies keep today's preview then live recovery). Transcript search keeps main's createChatSearchMatcher factory and prose fast path, with retained/live recovery selection inside the closure.

Snapshot projection 13 -> 14 drops old disposable cache records: expect one cold reload after deployment. Existing row pruning, 12 MiB per-record, 24 MiB total and 20-session bounds are unchanged. No server schema, protocol, config or history-request change.

Proof: 11 interleaved AWS pairs per route plus A/A: complete cached text 11/11, expansion 280 -> 0 px, final rows earlier by 409 ms (chat) and 620 ms (dashboard); dashboard FCP/first rows +54/+56 ms within the accepted +60 ms complete-first-paint tradeoff; no LoAF/CLS regression. Runtime +67 LOC vs main. The only red PR check is check-lint-core-2 on src/skills/workshop/experience-review.test.ts (untouched here), reproduced byte-identically on main.
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 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: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant