Repository navigation
perf(control-ui): retain warm pane chrome display facts - #190251
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
force-pushed
the
steipete/coldload-pane-chrome-live-facts
branch
4 times, most recently
from
November 1, 2026 13:21
29e4c1e to
cccda95
Compare
steipete
marked this pull request as ready for review
November 1, 2026 14:37
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Keep workspace and color display facts plus versions presence in the scoped session snapshot. Reuse the boot profile for own-message identity and reserve both native action slots before live descriptors arrive.
steipete
marked this pull request as draft
November 1, 2026 14:47
steipete
force-pushed
the
steipete/coldload-pane-chrome-live-facts
branch
from
November 1, 2026 14:48
cccda95 to
350c706
Compare
steipete
marked this pull request as ready for review
November 1, 2026 14:48
steipete
marked this pull request as draft
November 1, 2026 15:28
steipete
marked this pull request as ready for review
November 1, 2026 15:32
This was referenced Nov 1, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
) Warm reloads of a dashboard deep link or chat route no longer move the pane header and footer after first paint. Previously the workspace breadcrumb and session color arrived with initial history, the own-message sender name disappeared at hello once self-identity resolved, and the versions action appeared when the branch list arrived, so the header trailing edge moved up to 168 px, the title 136 px, the identity actions 32 px and the own footer 61 px. The existing pane snapshot owner now retains the workspace root/label, session color and versions-button presence, and its equality check lets a chrome-only change persist. The first own-message projection uses the scoped boot record's existing profile identity, which removes the pane-local identity fallback. The two header action hit areas are reserved with the existing icon-size token; the cached versions button stays disabled until the live branch list arrives. No Gateway protocol, server schema or config change. Proof: 11 interleaved AWS pairs per route plus A/A, real-Gateway warm reloads: all four movements 168/137/32/62 px -> 0 px in 11/11 on chat and dashboard; CLS lower 11/11; snapshot +0.19%; FCP +0, LoAF -5/+2 ms. Dashboard first-post-hello RPC proxy +17.8 ms (hello receipt +17.3 ms, inside the A/A range -56.8..+33.1 ms), accepted by the lead. Runtime +48 LOC. Exact-head CI green; full UI 886 pass / 5 fail, all reproduce on pinned main. Release-note context: Control UI warm reloads retain workspace breadcrumbs, session colors, versions controls and own-message identity while reconnecting.
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lead accepted for landing; validation complete. All four targeted movements are 0 px in 11/11 pairs on both routes. The lead explicitly accepted the measured dashboard hello-handled proxy tradeoff below. No performance comparison is being rerun. Fresh ready-PR CI is green. The full UI suite completed, and every failure is classified below with pinned-main controls. The lane will not merge this PR.
What Problem This Solves
A signed-in warm reload of a dashboard deep link or chat route could insert the workspace breadcrumb and session color after first paint, remove an own-message sender name at hello, and insert a versions action when the branch list arrived. Synthetic fixtures reproduce these repeatable header/footer jumps on both routes.
Why This Change Was Made
The existing pane snapshot already owns retained session display state. Extend that snapshot with the workspace root/label, session color, and versions-button presence. Update its existing equality check so a chrome-only update reaches persistent storage. Generalize the existing parent-session snapshot writer instead of adding another owner.
Use the scoped boot record's existing profile identity for the first own-message projection, removing the pane-local identity fallback. Reserve the two header action hit areas with the existing icon-size token. The cached versions button remains disabled until the live branch list arrives; workspace icon requests keep their canonical live session target and existing connection guard.
sessions.messages.subscribewithinitialHistoryin this fixture) suppliessessionInfo;sessions.describerefreshes the observed row. A workspace label renders the chipisOwnGroup; peer groups render the sender namesessions.branches.list; non-catalog sessions with more than one branch render the actionUser Impact
The candidate restores these display facts with the cached pane and replaces them in place as live data arrives. Cold first load keeps the existing behavior. The change adds no Gateway protocol, server schema, or configuration surface.
Release-note context: Control UI warm reloads retain workspace breadcrumbs, session colors, versions controls, and own-message identity while reconnecting.
Evidence
Final candidate
350c70654714714fe6813541c4af4efe22c7f325; baseline49600b5cf8f3f387e5f8b90c7654c712432e8f71. One AWSc7a.4xlargelease (16 CPUs), repository headless Chromium, production Gateway HTTP documents/assets with synthetic bootstrap/WebSocket state,live-fastlatency, untraced warm reloads. Each route has 11 interleaved baseline/candidate pairs and 11 A/A pairs. The fixture uses an archived off-roster session, a workspace, an identified own sender, a color, two versions, and the category/created/involving-me sidebar shape with 97 groups, 102 order entries, five collapsed sections, previews off, empty-group mode always, and pins.The corrected gate excludes the unrelated
row-factstail conversion, which makes the last user message anonymous. Earlier measurements with that invalid footer witness are excluded. The final baseline reproduces the footer movement.Final-head geometry and bytes
Maximum absolute x/width displacement after the first mounted header frame. Workspace and color arrive together in the baseline; title offset reports their combined contribution. The native regression independently checks both cached controls.
Revised gate
The maintainer explicitly accepted the complete-first-paint tradeoff and replaced the original LoAF gate on November 1. The original comparison had a +8 ms paired median pre-hello blocking cost; complete cached chrome is intentional, consistent with #189918. The table below is the one permitted rerun, on the final head after the CSS byte-budget repair.
Hello handled is explicitly the first-post-hello-RPC proxy, not an instrumented end-of-handler mark. Dashboard hello receipt is itself +17.3 ms paired; receipt-to-first-RPC improves by 0.4 ms. Dashboard A/A proxy paired median is −15.4 ms with a −56.8…+33.1 ms range; A/B IQRs overlap (base 549.7…587.9 ms, candidate 555.1…608.2 ms). The final candidate median is 583.4 ms versus baseline 563.6 ms; paired median +17.8 ms exceeds the original heuristic by 2.8 ms. The lead acceptance below replaces that stop decision.
Lead acceptance
The lead accepted
350c70654714for landing on November 1. Dashboard hello-handled is +17.8 ms, 2.8 ms over the original heuristic, with later hello receipt (+17.3 ms) accounting for the delay while receipt-to-first-RPC improves. The lead accepts this as pre-hello complete-chrome work delaying the WebSocket event. Dashboard A/A paired median is −15.4 ms with a −56.8…+33.1 ms range, placing this result inside the measured noise. Chat hello-handled is +7 ms, FCP is unchanged on both routes, LoAF paired medians are −5/+2 ms, all four movements are 0 px in 11/11 pairs on both routes, CLS is lower in 11/11, and runtime growth is +48 LOC. The product decision is that removing four visible reload jumps outweighs about 18 ms later live data on the dashboard. The accepted complete-first-paint tradeoff is consistent with #189918. No AWS comparison rerun is authorized or being performed.Both #189918 and #190245 are already ancestors of the candidate. Newer pinned main
091971671f836aaa111a8b83bd59b613c5504affhas no overlap with this lane's files and merges cleanly, so the accepted head is retained.Chat
Medians [Q1, Q3], milliseconds except CLS.
chat AA per-pair deltas (second minus first)
chat AB per-pair deltas (second minus first)
Medians [Q1, Q3], milliseconds except CLS.
dashboard AA per-pair deltas (second minus first)
dashboard AB per-pair deltas (second minus first)
Bounded blob investigation
The original stop-report traces (
cccda95161d1versusa58c97923499) resolve the requested baseline comparison without another 11-pair rerun. Candidate chat pairs 7, 8, and 10 containResponse.blob.thenframes blocking 64/76/76 ms. Identical baseline code produces the same attribution: chat A/A pair 2 blocks 62 ms; dashboard baseline A/A frames block up to 118 ms (133 ms in the other identical-baseline slot). Dashboard A/B baseline also has 53/47/66 ms blob-blocked frames. These are not candidate-exclusive frames.Protected-image request paths and multiplicities match exactly in 11/11 pairs on each route. Both arms fetch one workspace icon per reload, with that request still after hello (chat base +291.5…402.1 ms, candidate +286.7…415.1 ms; dashboard base +216.5…270.9 ms, candidate +216.0…343.7 ms). The restored workspace chip initially uses its fixed-size folder fallback; the unchanged header guard admits the real icon only with the canonical live session row. The identified sender avatar already takes the sender-identity path in both arms, so the cached self principal changes footer classification without creating another avatar source.
The two blob-producing image owners retain their existing shared in-flight entries, lifecycle checks, and publication path. No extra fetch or earlier pre-hello image publication was found. Saved LoAF attribution does not identify a particular image/function, and differing event-loop/frame alignment cannot be excluded; the data does not establish equal tail frequency. There is no evidenced candidate-caused duplicate to remove within the bounded scope, so image scheduling is unchanged. No image-owner change was made. A subsequent CI-only CSS byte-budget repair used the one permitted final-head comparison rerun, reported above.
Pre-hello blocking phase medians are 92 → 106 ms, paired median +8 ms (10/11 worse). Receipt-to-first-RPC improves slightly, 6.8 → 6.6 ms; catch-up blocking medians are 37 → 34 ms. The revised gate explicitly accepts the complete-chrome work and permits the observed total LoAF delta.
CSS budget repair
The first ready-PR CI run failed total raw CSS: candidate 1,601,876 B versus base 1,601,732 B, while base already exceeded the fixed 1,599,319 B ceiling. The +144 B patch growth exceeded the 64 B build-variance allowance by 80 B. The repair deletes the extra versions selector and passes the menu count into the existing icon-size reservation rule. It preserves the one-/two-slot geometry and reduces runtime by seven net lines. Review is clean through P2 and the focused versions tests pass. The final head was rebased cleanly before pushing. Its comparison completed on a fresh fixed-class lease. The initial stop was honored; the lead subsequently accepted the result and authorized the full-suite stage.
Validation and scope
node scripts/check-changed.mjs: typechecks, lint, formatting, and other guards pass; dead-export scan fails on three untouchedsrc/plugins/worker-retention.tsschema exports. The three exports areworkerRetentionObservationSchema,workerRetentionOperationSchema, andworkerRetentionPolicySchema; their source is unchanged by this lane. The same command fails on pinned main091971671f836aaa111a8b83bd59b613c5504affwith exactly the same three exports (both production and full-tree scans). This is an inherited preflight failure. The earlier stop-report head passed the full command.pnpm test <file> --maxWorkers=1: message cache 40 tests, 2.87 s wall; snapshot store 46 tests, 3.57 s wall.350c70654714: clean through P2.--maxWorkers=4: 886 files passed, 5 failed, 3 skipped (894); 3,377 tests passed, 5 failed, 4 skipped (3,386). Wall time 3,540.46 s. Failures: outbox initial-roster readiness, responsive composer remeasurement, and QA Lab artifact-directory cleanup in automation-management, media/transcript, and delegation. The failed subset was replayed on both the head and pinned main; results are below. The two-route warm-reload regression also passes inside this full run.Full UI failure classification
Pinned main:
091971671f836aaa111a8b83bd59b613c5504aff. Controls used the same five files and--maxWorkers=4, with Chromium/WebKit installed and the same private UI artifact-root setup. Head replay: five failed files, five failed tests and nine passed tests. Unmodified pinned-main replay: four failed files, one passed file; four failed tests and ten passed tests. Failure cases and errors match for all four persistent files.ui/src/e2e/chat-outbox-migration.e2e.test.tsui/src/e2e/chat-responsive.e2e.test.tsextensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.tsextensions/qa-lab/src/control-ui-media-transcript.real-gateway.e2e.test.tsextensions/qa-lab/src/control-ui-openclaw-delegation.real-gateway.e2e.test.tsFor responsive geometry, main shortens the draft to start below the mobile three-line cap. To compare identical fixtures, a separate control used pinned-main production code with only the original test file from
350c70654714; it reproduces the same 30-second timeout (one failed test, four passed). The original main test file was restored and its Git diff verified clean. The correction is already on main and does not overlap this lane's diff. No lane runtime regression was established.The three QA cases hit a setup/cleanup contract mismatch: the UI harness permits a private external artifact root, while these QA child-Gateway artifact owners require a path within the repository. Those QA flows are not claimed as fully validated. No security guard or test expectation was weakened.
cbx_4595dae0f807cbx_4595dae0f807cbx_6bcd9e24dcbfcbx_6bcd9e24dcbfThe runtime growth is required to retain the missing display contract and independently reserve both menu hit areas. The old pane-local identity field and parent-only snapshot-writer path are removed. Files touched: pane snapshot/cache/observation, header/versions/self presentation, startup layout CSS, shared Team-scale fixture/probe/bench, and three test files. No protocol, server schema, configuration option, or new store was added.
Final AWS proof:
cbx_2f3ce70bd985,c7a.4xlarge, run record. Lease cleanup is recorded separately below.Synthetic before/after
All captures use synthetic data. These native connection-fixture captures prove pane chrome; their unavailable dashboard widget is a fixture limitation. The measured Team-scale dashboard waits for populated widget readiness.
Cleanup: accepted-validation lease
cbx_4595dae0f807and pinned-main control leasecbx_6bcd9e24dcbfare released. Every earlier lane lease is also released. No local Gateway was started; terminating the AWS leases stops their isolated fixture processes. The lane worktree remains clean at350c70654714714fe6813541c4af4efe22c7f325.Media delivery: GitHub attachment uploads returned asset URLs that fetched as 404. The four inspected PNGs use the approved Crabbox artifact-store fallback; each downloaded image was hash-verified against its source. These broker links expire after seven days.
Exact-head ready-PR CI: run 41321760203 completed successfully on
350c70654714714fe6813541c4af4efe22c7f325: 42 jobs passed, 25 skipped. All three selectedchecks-uijobs and all six selectedchecks-ui-e2eshards passed. No new CI red remains. The earlier CSS byte-budget red was repaired before this accepted head.