Skip to content

fix(control-ui): settle cached Details through lazy loading - #190929

Merged
steipete merged 2 commits into
mainfrom
steipete/coldload-details-session-final
Nov 2, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/coldload-details-session-final

Conversation

@steipete

@steipete steipete commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A warm signed-in reload showed incomplete desktop Details and pushed Automations down as Environment filled above it. The existing Details snapshot omitted creator/count and branch/worktree display facts, while the nested Environment body crossed a second lazy boundary after the panel became visible.

Why This Change Was Made

Retain those optional facts in the existing scoped Details snapshot. Keep all four lazy boundaries. The desktop composition's existing lazy loader now prepares its nested Environment body before mounting, so the already-present panel fills once with settled content (shape b). This uses the existing loading boundary without adding a transcript timing hook, transcript reveal hold, placeholder geometry or static Details import into the transcript-critical chunk.

Full live session observations replace cached display facts in place; compact roster rows do not clear them first. Projection stays 14: fields are optional, absent fields keep live rendering, and non-strict older readers ignore unknown fields. Existing account/scope/epoch/incarnation/locale checks and bounds remain the snapshot owner. No new store, application setting, Gateway protocol field, server schema or durable server-record shape. Cached presentation grants no action authority.

User Impact

Previously loaded Details fills in one step, with Automations at its final position, then updates changed live values in place. Archived sessions retain the existing rule hiding Progress; active chat/dashboard regression cases cover Progress separately.

Open limit: machine placement, PR/work and dirty-file rows remain live. This candidate does not claim cached first-frame stability for those variants.

Evidence

Supersedes the rejected eager experiment #190898. Candidate a22829c; baseline 796b147.

All numeric gates pass. Eleven interleaved pairs per route plus eleven chat A/A pairs on one quiet AWS c7a.4xlarge, 16 vCPU, about 31 GiB RAM, 99% idle preflight. Repo Playwright Chromium 156.0.8078.4, unprofiled Team-scale bench, live-capped latency, archived chat with desktop Details, populated Automations, session creator/count and branch/worktree facts. Sidebar settings: involving-me, category/created, 97 groups/102 order entries, five collapsed sections, empty groups always, preview off and pins.

  • Chat: 81→0 px movement in 11/11 candidates; every section identity/top/height is final from its first nonempty Details frame. First Details content 406.1→404.5 ms median; final Details geometry 1095.3→404.5 ms.
  • Chat painted rows 376→376 ms, overlapping IQRs, 3/11 worse pairs. Visible rows 297.1→296.0 ms, overlapping IQRs, 4/11 worse. Dashboard also passes both tightened gates (3/11 and 4/11 worse).
  • Other secondaries pass the standing regression rule. Chat live catch-up is +15.4 ms paired median with 9/11 positive signs, but overlapping IQRs and below the 3% threshold (26.0 ms). This is disclosed, not claimed as an improvement. Dashboard FCP +8 ms paired has mixed signs/overlapping IQRs.
  • Snapshot growth: chat +648 B (1.14%), dashboard +475 B (0.85%). These are whole-record measured differences, including transient serialized receipts; the identical-bundle A/A differs by 3 B.

The first nonempty Details frame is the revised one-fill contract: an empty existing panel may precede it. Movement is cumulative Automations top displacement; an independent check requires all section identities, tops and heights to equal settled geometry within 1 px. Median [Q1,Q3] uses inclusive quartiles. All times below are ms except movement (px), CLS and snapshot bytes. “Final row window” is the first sample of the eventual rendered row-key set; “live catchup” is transcript-ready publication, not compositor paint. The fixture has its four final rendered rows from its first row window. A/A labels mean the first and second copies of the same baseline bundle. No local performance timings are used.

chat

Metric Baseline median [Q1,Q3] Candidate median [Q1,Q3] Paired Δ median Worse pairs
movement 81.0 [81.0,81.0] 0.0 [0.0,0.0] -81.0 0/11
hello 556.7 [552.5,566.2] 555.3 [552.7,556.5] -4.0 5/11
FCP 88.0 [88.0,92.0] 88.0 [86.0,92.0] 0.0 2/11
painted rows 376.0 [374.0,380.0] 376.0 [372.0,380.0] 0.0 3/11
visible rows 297.1 [294.0,300.9] 296.0 [292.5,297.5] -1.3 4/11
final row window 297.1 [294.1,300.9] 296.0 [292.6,297.5] -1.2 4/11
live catchup 866.3 [851.0,885.8] 883.9 [873.0,890.5] 15.4 9/11
LoAF blocking 137.0 [135.5,142.0] 131.0 [126.5,142.0] -3.0 5/11
CLS 0.002801 [0.002772,0.002836] 0.000019 [0.000019,0.000019] -0.002782 0/11
snapshot bytes 56802.0 [56802.0,56802.0] 57450.0 [57450.0,57450.0] 648.0 11/11

All section identities, tops and heights final within 1 px from first nonempty Details sample: 11/11 candidates.

Pair Movement B→C Hello Δ FCP Δ Painted Δ Visible Δ Row-window Δ Catchup Δ LoAF Δ CLS Δ
1 81→0 9.0 0.0 0.0 2.7 2.7 17.6 3.0 -0.002617
2 81→0 -4.0 8.0 0.0 -2.4 -2.4 5.6 6.0 -0.002765
3 81→0 -11.4 -16.0 -16.0 -14.5 -14.6 1.4 -13.0 -0.002817
4 81→0 4.8 -4.0 0.0 -1.3 -1.2 15.4 10.0 -0.002817
5 81→0 8.3 -4.0 -4.0 -0.2 -0.3 46.1 4.0 -0.002747
6 81→0 -28.0 -4.0 -20.0 -14.1 -14.2 -2.2 -30.0 -0.002688
7 81→0 -17.8 0.0 -8.0 -7.2 -7.2 -50.7 -3.0 -0.002759
8 81→0 -4.7 0.0 0.0 -3.5 -3.5 2.2 -19.0 -0.002824
9 81→0 -4.0 0.0 12.0 9.9 9.9 24.4 4.0 -0.002782
10 81→0 2.5 0.0 4.0 1.8 1.8 15.4 -6.0 -0.002802
11 81→0 2.7 4.0 8.0 4.1 4.1 53.9 -6.0 -0.002828

dashboard

Metric Baseline median [Q1,Q3] Candidate median [Q1,Q3] Paired Δ median Worse pairs
movement 0.0 [0.0,0.0] 0.0 [0.0,0.0] 0.0 0/11
hello 570.0 [564.9,579.0] 573.1 [563.2,580.2] -0.1 5/11
FCP 88.0 [88.0,88.0] 92.0 [88.0,96.0] 8.0 6/11
painted rows 336.0 [328.0,386.0] 324.0 [322.0,336.0] -4.0 3/11
visible rows 294.5 [287.5,298.2] 285.6 [280.3,293.2] -6.3 4/11
final row window 294.5 [287.5,298.3] 285.6 [280.5,293.3] -6.3 4/11
live catchup 848.1 [825.9,864.1] 844.2 [828.3,852.2] -3.9 5/11
LoAF blocking 142.0 [123.0,153.0] 122.0 [105.5,132.0] -24.0 5/11
CLS 0.000019 [0.000019,0.000019] 0.000019 [0.000019,0.000019] 0.000000 0/11
snapshot bytes 56164.0 [56164.0,56164.0] 56639.0 [56639.0,56639.0] 475.0 11/11

All section identities, tops and heights final within 1 px from first nonempty Details sample: 11/11 candidates.

Pair Movement B→C Hello Δ FCP Δ Painted Δ Visible Δ Row-window Δ Catchup Δ LoAF Δ CLS Δ
1 0→0 12.6 8.0 -64.0 -11.0 -11.1 -116.5 21.0 0.000000
2 0→0 0.9 0.0 56.0 12.3 12.3 -3.9 11.0 0.000000
3 0→0 -10.8 0.0 -80.0 -33.8 -33.8 -68.3 -53.0 0.000000
4 0→0 -3.2 0.0 -8.0 -6.3 -6.3 11.7 -34.0 0.000000
5 0→0 -0.1 8.0 -4.0 5.8 5.8 27.2 26.0 0.000000
6 0→0 -4.0 8.0 4.0 0.2 0.3 -5.2 -46.0 0.000000
7 0→0 -75.3 12.0 -72.0 -24.9 -24.8 -63.1 -103.0 0.000000
8 0→0 25.3 8.0 -60.0 -17.6 -17.7 45.2 -42.0 0.000000
9 0→0 3.8 -4.0 -4.0 -8.0 -7.9 -15.7 10.0 0.000000
10 0→0 18.6 8.0 16.0 13.3 13.3 9.1 -24.0 0.000000
11 0→0 -7.8 0.0 0.0 -1.3 -1.2 32.2 8.0 0.000000

aa

Metric Baseline median [Q1,Q3] Candidate median [Q1,Q3] Paired Δ median Worse pairs
movement 81.0 [81.0,81.0] 81.0 [81.0,81.0] 0.0 0/11
hello 557.2 [552.5,560.1] 557.5 [552.7,563.1] -0.3 5/11
FCP 92.0 [88.0,92.0] 88.0 [88.0,92.0] 0.0 3/11
painted rows 376.0 [374.0,386.0] 376.0 [372.0,382.0] -4.0 3/11
visible rows 296.0 [292.3,302.9] 298.1 [292.5,300.9] -1.2 4/11
final row window 296.1 [292.5,302.9] 298.2 [292.6,300.9] -1.2 4/11
live catchup 873.7 [865.2,878.2] 869.5 [858.2,875.7] -6.4 4/11
LoAF blocking 138.0 [134.0,147.5] 139.0 [133.0,143.0] 0.0 4/11
CLS 0.002770 [0.002714,0.002789] 0.002728 [0.002713,0.002822] -0.000057 5/11
snapshot bytes 56800.0 [56800.0,56800.0] 56803.0 [56803.0,56803.0] 3.0 11/11

All section identities, tops and heights final within 1 px from first nonempty Details sample: 0/11 candidates.

Pair Movement B→C Hello Δ FCP Δ Painted Δ Visible Δ Row-window Δ Catchup Δ LoAF Δ CLS Δ
1 81→81 13.3 -4.0 4.0 1.1 1.2 38.4 -9.0 -0.000173
2 81→81 -8.7 0.0 0.0 -1.2 -1.2 -36.6 0.0 0.000084
3 81→81 -0.3 -4.0 -8.0 -9.5 -9.6 -25.3 20.0 -0.000059
4 81→81 -10.4 4.0 -4.0 -1.2 -1.2 -31.1 0.0 0.000090
5 81→81 -5.6 4.0 -4.0 -1.2 -1.4 14.5 -19.0 0.000056
6 81→81 11.9 0.0 -4.0 1.6 1.6 -14.8 24.0 -0.000104
7 81→81 16.2 -4.0 4.0 9.0 9.0 -4.2 5.0 0.000199
8 81→81 12.9 -4.0 8.0 7.0 6.9 24.0 4.0 0.000178
9 81→81 -4.0 12.0 -4.0 -3.7 -3.7 -8.7 -5.0 -0.000057
10 81→81 1.2 -4.0 -12.0 -5.2 -5.1 29.5 -21.0 -0.000089
11 81→81 -10.2 0.0 -4.0 -1.5 -1.5 -6.4 -5.0 -0.000102

Split attribution

Original baseline c9cd215. Arm F is d33328e plus only the four lazy-boundary restorations; arm E is baseline plus only the four eager-boundary changes. Same quiet AWS c7a.4xlarge lease cbx_4c37ee29d3b2, run run_686cec6f8a06ffc9050d9e46ac1ba0f9. Five interleaved baseline/arm pairs each, archived chat with Details open, Team-scale fixture and live-capped latency; unprofiled. Median [Q1,Q3], inclusive quartiles. No local performance timing results.

Arm / metric Baseline Arm Paired deltas
facts / painted rows ms 376.0 [376.0,376.0] 376.0 [372.0,380.0] +4.0, +0.0, +0.0, -8.0, +4.0
facts / visible rows ms 294.0 [292.1,296.1] 295.2 [293.2,295.7] +5.1, -1.9, -0.4, -3.6, +3.1
facts / LoAF blocking ms 122.0 [121.0,147.0] 134.0 [124.0,137.0] +2.0, -5.0, -25.0, -6.0, +16.0
facts / Details movement px 81.0 [81.0,81.0] 30.0 [30.0,30.0] -51.0, -51.0, -51.0, -51.0, -51.0
eager / painted rows ms 372.0 [368.0,380.0] 392.0 [384.0,396.0] +16.0, +8.0, +0.0, +24.0, +28.0
eager / visible rows ms 293.6 [287.3,299.2] 307.8 [302.3,309.0] +15.0, +5.4, -1.2, +15.4, +24.1
eager / LoAF blocking ms 134.0 [129.0,140.0] 152.0 [146.0,162.0] +52.0, -18.0, +6.0, +23.0, +28.0
eager / Details movement px 81.0 [81.0,81.0] 81.0 [81.0,81.0] +0.0, +0.0, +0.0, +0.0, +0.0

Facts-only has mixed transcript timing signs and zero painted-row paired median delta. It fixes the missing initial Environment shell (51 px) but leaves its 30 px lazy body growth. Eager-only reproduces the +20 ms painted-row median and does not fix movement. This five-pair diagnostic supports separating the levers; it is not the eleven-pair final gate. The candidate adds shape (b): desktop lazy composition waits for its nested Environment body before mounting, so the existing panel fills once. No transcript hold, placeholder geometry or static import is added.

The native test starts at visible session content (not the existing empty panel), preserving the revised one-fill contract. Baseline and facts-only must still fail on post-content geometry; candidate is facts plus a preload awaited by the existing lazy composition loader. All four boundaries remain dynamic. The current runtime delta is +66 LOC (roughly 60); it retains complete creator display identity and keeps cache retirement behind the full-session receipt. There is no added render-timing hook.

Real-Gateway and visual proof

The isolated synthetic Gateway exercises signed-in document reload, real transport and persisted snapshots, with two warm reloads per arm and route. Both candidate chat reloads keep session height 178 px, Environment 81 px and Automations top 183 px; baseline session 148→178 px / Automations top 153→183 px. No browser errors; PaintHolding capture-method calibration passed. Dashboard captures had no Details section and provide route/transport evidence only. This small diagnostic is not substituted for the eleven-pair timing gate.

Inspected synthetic-only strips, identical 320×390 crop and scale. These are each arm's first captured nonempty Details surface (baseline 1098 ms, candidate 1302 ms in this diagnostic), not a same-time comparison. The baseline body later fills and moves Automations another 30 px; the candidate's first content is complete. Raw full frames and crop coordinates are retained locally. No private Team media was uploaded.

Before

Before: Environment heading is present but the branch row has not arrived

After

After: Environment branch and worktree are present in the first captured Details content

Validation and size

Native browser regression is red 3/3 on pre-fix runtime, green 3/3 on this head: active chat, active dashboard, archived chat. It exercises actual IndexedDB snapshot writes/reload, a held connection, per-frame geometry and subsequent live Progress changes. pnpm test ui/src/e2e/chat-details-reload.e2e.test.ts --maxWorkers=1: 21.68 s wall. Existing Details session tests 17/17, arrival tests 8/8. Independent local Codex review of the complete candidate is clean through P2; the patch-identical rebase preserved it.

Runtime delta +66 LOC (roughly 60). Growth is the missing display facts, full-live cutover and lazy preparation; all four eager boundaries from the rejected candidate are removed. Prescribed non-test/non-doc stat: 157 additions / 24 deletions, net +133 (includes diagnostics, test helpers and allocation). Exact test/helper allocation 118 supports the consolidated behavior regression and shared live-like fixture; no slack added to a shared scalar ceiling.

AWS attribution: lease cbx_4c37ee29d3b2, run run_686cec6f8a06ffc9050d9e46ac1ba0f9. Final proof: lease cbx_268667101bb5, run run_fb86fcf421c71ad835f7c52641b89d65. Focused setup retries and baseline/main controls: run run_231fd797ae96a788d5e7b5f258b03c4e, same AWS c7a.4xlarge. All source builds succeeded.

Full UI e2e ran once on the final head: 896 files: 886 passed, 7 failed, 3 skipped; 3,372 tests passed, 2 failed, 20 skipped (Vitest 3,345.22 s; command wall 57m55.7s). This is not an all-green full suite. Complete per-file results and raw logs are retained with the lane evidence. Only failed files were rerun afterward, one at a time with --maxWorkers=1.

Failed file / check Candidate result Control / classification
ui/src/e2e/logs-scroll.e2e.test.ts WebKit executable absent in full run; 3/3 pass after installing the required browser Setup failure, unchanged final head
ui/src/e2e/chat-history-reading-stability.e2e.test.ts WebKit absent; 3/3 pass after installation Setup failure, unchanged final head
ui/src/e2e/tooltip-first-activation.e2e.test.ts WebKit absent; 2/2 pass after installation Setup failure, unchanged final head
ui/src/e2e/chat-composer-picker-layout.e2e.test.ts WebKit absent; 4/4 pass after installation Setup failure, unchanged final head
ui/src/pages/workboard/workboard-native-bundle.e2e.test.ts WebKit absent; 4/4 pass after installation Setup failure, unchanged final head
ui/src/e2e/chat-outbox-migration.e2e.test.ts Initial roster wait times out after 10 s; 1 pass / 1 fail Same test and timeout on pinned base and current main
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts Private mutation boundary writable by another POSIX principal; 1 pass / 1 fail Same test and error on pinned base and current main
changed-file dead-export check FollowupSummaryEntry in src/sessions/session-controller.contracts.ts Same failure on pinned base; main fixes it in 1cd403ee2bfe. Main scan now reports different plugin-hook exports.
CI boundary check Root Baseten admission test imports plugin runtime Same failure on pinned base; current main passes following #190958, commit 50f868506375d43773c96cfe98ae6e6e18962d33

Controls used pinned base 796b14713458a20de36316eff479603dd84c7225 and freshly fetched main d9627ecb437b2a0fdaa2215137b291dbbc806137, isolated with their own installs/builds. No main source was changed to obtain a control. The three suite-level skipped files were desktop-resize.real-gateway, chat-steer-deferred-custody.real-gateway, and deepseek-search.real-gateway.

Changed-file types, lint, formatting, i18n and UI guards passed; its only failure was the inherited dead export above. Exact-head CI run 41406417388 finished with 36 successful, 24 skipped, 2 failed jobs. Selected UI/performance/lint checks passed. Failures are the inherited boundary violation and its aggregate openclaw/ci-gate. Failed job log fetched once; no CI reruns or update-branch actions to chase unrelated reds. CI is not green; the baseline reproduction and subsequent main fix explain the red.

All owned leases are released; final lease cleanup is verified complete with no host remaining. All owned Gateways are stopped. The campaign lead owns landing; this PR is ready for review and this lane has not merged it.

Retain session attribution, participant counts, and branch/worktree display facts in the scoped Details snapshot. Remove lazy boundaries that leave the restored inspector empty or grow it after the first frame. Live full-row receipts replace cached presentation without transferring action authority.
Retain the existing projection-14 display facts while restoring all four Details lazy boundaries. Prepare the nested Environment body before the desktop composition fills its panel, so cached Automations stays in place without eager transcript-path imports.
@clawsweeper

clawsweeper Bot commented Nov 2, 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 Nov 2, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR retains additional Details display facts and prepares the lazy Environment body before mounting desktop Details.

Example: Warm-reload a saved desktop conversation showing feature/verification and Automations.

  • Before: The reported baseline inserts Environment later and moves Automations by 81 px.
  • After: The candidate restores saved session and branch facts and waits for the nested body before showing settled Details content.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-consistent, with useful browser regression coverage, but still an unfinished performance experiment with stored-model compatibility validation outstanding.
Proof confidence 🦐 gold shrimp (3/6) Maintainer-authored work is outside the ordinary contributor proof gate; supplied results cover diagnostic variants and a mocked-transport browser regression, while the revised candidate's final paired performance and visual acceptance evidence remains explicitly pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Environment appears above existing Details content during warm reload and moves Automations.
Reason: The focused repair serves the documented layout-stability contract, and supplied maintainer-authorship facts establish direction; live machine, publication and dirty-file variants remain explicitly outside its claim.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this maintainer-authored experiment open under its explicit do-not-merge hold; no definite introduced runtime bug was found.

Priority: P2
Reviewed head: a22829cdbd2f4d256a9295671f35cf0a60b31157

Before merge

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

Findings

None.

Tests

  • Missing end-to-end proof: The revised candidate still needs its declared real-Gateway reload comparison, inspected before/after visual evidence and live-fact replacement coverage; current-head broad validation is explicitly pending.
Agent review details

How this fits together

The Control UI combines scoped browser snapshots and live Gateway session observations into Details presentation, while existing owners retain read and mutation authority.

flowchart TD
  A[Browser snapshot] --> C[Pane presentation]
  B[Live session observation] --> C
  C --> D[Lazy Details composition]
  E[Environment body preparation] --> D
  D --> F[Settled Details content]
  C --> A
Loading

Technical review

Best possible solution:

Restore stable Details geometry through the existing scoped snapshot and lazy composition owners while preserving live reconciliation and transcript performance.

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

Source inspection supports the missing display-fact and nested-loading path, and the author reports baseline browser failures; this review did not execute a reproduction.

Is this the best way to solve the issue?

The patch follows the smallest complete repair for the stated branch/worktree scenario: retain missing facts in the existing snapshot and prepare the nested body at the existing lazy loader.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Lazy Details composition keeps the original intent (53fbcbb: Defer unopened Details from boot and retain it after first presentation; the revised patch preserves that lazy admission.)
  • Nested Environment body changes intended behavior with a stated reason (a36d048: Defer dormant presentation code; this PR explains why an already-admitted desktop composition now prepares its nested body before mounting.)
  • Scoped Details snapshot keeps the original intent (dad7cbe: Restore bounded display facts through the existing pane snapshot without transferring action authority.)
  • Environment publication and change rows keeps the original intent (fa0bde1: Keep local edits visible beside existing pull requests and preserve publication recovery; the patch retains those live owners and controls.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Explicit experimental hold: The complete live body pins the reviewed head, retains Draft and do not merge, and explicitly leaves the final comparison and broad validation pending; discussion contains no instruction lifting that hold. (a22829cdbd2f)
  • Introduced change verified: The pinned introduction extends the existing Details snapshot, wires full-session readiness, and awaits Environment preparation inside the existing lazy desktop loader; it introduces no competing store or transcript timing hook. (ui/src/pages/chat/components/chat-details.tsx:36, a22829cdbd2f)
  • Central change remains absent from main: Fetched main lacks the optional session and environment snapshot fields and retains the desktop loader without nested Environment preparation. (ui/src/pages/chat/session-details-snapshot-schema.ts:15, 6deb24aa4654)
  • Existing scope and live authority retained: Snapshot publication still checks connection, client, epoch, incarnation, scope, session and locale; cached creator/count and branch/worktree facts feed presentation rather than publication or checkout authority. (ui/src/pages/chat/chat-details-snapshot.ts:58, a22829cdbd2f)
  • Browser regression boundary: The consolidated regression exercises browser persistence, reload and per-frame section geometry for active chat, active dashboard and archived chat, but installs a mocked Gateway transport. (ui/src/e2e/chat-details-reload.e2e.test.ts:57, a22829cdbd2f)
  • Stored-model compatibility remains unproven: The new fields are optional, the existing object reader ignores unknown nested fields, and projection 14 is unchanged, supporting the proposed compatibility design; no latest-stable upgrade run preserving settings and data is supplied. (ui/src/pages/chat/session-details-snapshot-schema.ts:18, a22829cdbd2f)

PR surface

Source +66, Tests +118, Docs +2, Other +24. Total +210 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 81 15 +66
Tests 3 140 22 +118
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 5 26 2 +24
Total 16 249 39 +210

Review metrics

Metric Value Why it matters
Application runtime versus regression coverage Runtime +66 net lines; browser regression and shared fixtures +118 net lines Growth retains missing display inputs and extends the existing geometry regression without adding another persistence owner.
Diagnostic option One new --details-session-facts switch exposed by two proof commands The switch selects synthetic fixture content and adds no application setting or Gateway protocol field.

Root-cause cluster

Relationship: canonical
Canonical: #190929
Summary: This PR carries the revised lazy candidate after the eager experiment was stopped.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: The reported warm-reload movement is a bounded visual stability defect without established data loss or a blocked workflow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: The reported warm-reload movement is a bounded visual stability defect without established data loss or a blocked workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

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 November 2, 2026, 2:15 AM ET / 07:15 UTC.

@steipete steipete changed the title experiment(control-ui): lazy settled Details reload [do not merge] fix(control-ui): settle cached Details through lazy loading Nov 2, 2026
@steipete
steipete marked this pull request as ready for review November 2, 2026 07:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-02T07:30:33.392682Z a22829c 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 merged commit 71edc68 into main Nov 2, 2026
205 of 211 checks passed
@steipete
steipete deleted the steipete/coldload-details-session-final branch November 2, 2026 09:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…law#190929)

Warm reloads of a chat with Details open no longer push the Details panel down after first paint. The existing scoped Details snapshot (projection 14) now retains optional display facts: session creator and participant count, plus Environment branch and worktree. They render until the full session observation is accepted, and live facts then replace them in place. The desktop composition's existing lazy loader prepares its nested Environment body before mounting, so the panel fills once. All four lazy boundaries are kept, with no transcript hold, placeholder geometry or new store.

Native 11-pair gate: Details movement 81 -> 0 px in 11/11 reloads; first painted rows 376 -> 376 ms; visible rows 297.1 -> 296.0 ms; snapshot growth +648 B (chat) and +475 B (dashboard). Older records without the fields render live, and non-strict older readers ignore them.

Supersedes openclaw#190898.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant