Repository navigation
perf(control-ui): show placed dashboard conversations immediately - #190589
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes the initial desktop side-pane fade and extends the existing warm-reload diagnostics. Example: Warm-reload a dashboard with a saved 320 px conversation pane.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored experiment open under its explicit do-not-merge hold; no discrete introduced correctness defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI places dashboard and conversation content in a shared panel layout; CSS controls surface presentation, while the isolated Gateway proof rig records browser geometry, paint observations, and plugin activation. flowchart LR
A[Synthetic fixture] --> B[Isolated Gateway]
B --> C[Chromium Control UI]
C --> D[Shared panel layout]
D --> E[Desktop surface CSS]
C --> F[Geometry and paint probes]
F --> G[Evidence report]
Technical reviewBest possible solution: Remove the initial opacity fade in the existing stylesheet while preserving panel ownership, layout transitions, and transcript placement. Do we have a high-confidence way to reproduce the issue? Current main retains the initial opacity rule, and the supplied real-Gateway baseline captures demonstrate the blank side surface; no target code was executed during this review. Is this the best way to solve the issue? The four-line deletion directly removes the measured presentation hold without changing the virtualizer or adding another runtime owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c5b56f2505c4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -4, Tests +28, Docs +24, Other +316. Total +364 across 8 files. Added test files: 1. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 1:50 PM ET / 18:50 UTC. |
52ea2cd to
23ddc91
Compare
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. |
23ddc91 to
f0356ca
Compare
…openclaw#190589) A warm reload of a dashboard deep link no longer keeps the measured, end-anchored conversation invisible after its rows settle. The transcript reveal owner (measured range plus reading-edge placement, openclaw#170662) was ready on time, but the desktop side region declared `@starting-style { opacity: 0 }` (added with the resizable panel frame in openclaw#176356). Every newly mounted side surface, including the dashboard's saved conversation pane, therefore replayed a 280 ms entrance fade over content that was already placed. Delete that four-line `@starting-style` block. Initially mounted desktop side surfaces show their placed content immediately; geometry, opacity and display transitions remain for open/close changes, and the transcript reveal guard is unchanged. A side surface that goes from hidden to shown now appears without the 280 ms fade. No persisted facts, protocol, schema or config change. The warm-reload proof rig gains a native tall-row dashboard fixture with bundled Workboard plus synthetic theme/board plugin modules on both plugin asset routes, and per-frame visibility probes (scripts/perf only). Proof (final head, 11 interleaved AWS pairs per route plus A/A, real Gateway, three-viewer preparation check intact): dashboard visible transcript 701.6 -> 508.1 ms median, paired -200.1 ms, 11/11 better with separated IQRs; post-row hold 175.7 -> 0 ms; reading position and row height final in 11/11 on both routes, 0 px movement, 0% snapshot growth; chat mixed (paired -34 ms, not claimed) and no secondary regressions. Runtime -4 LOC. Exact-head CI green; full UI 891 pass / 2 fail, both reproduce on the exact main base. Release-note context: Control UI dashboard warm reloads show the saved conversation pane immediately instead of fading it in.
What Problem This Solves
A signed-in warm dashboard reload can have a complete, measured, end-anchored transcript that remains invisible for another frame sequence. The campaign's original evidence recorded 14 visible loading states; this change targets the dashboard's ready-to-visible hold. Follow-up to closed #190430 on the same lane branch; that PR could not be reopened.
The transcript reveal owner is ready on time. A second gate exists in the ancestor desktop side surface:
startup-layout.csson the base starts side content and its header at opacity zero. Dashboard places the conversation there; ordinary chat places its transcript in the main surface. The transition is 280 ms (--chat-details-motion, lines 1260/1268), introduced with the resizable panel frame in #176356 (fb0ad93d0143). It is an entrance animation, with no plugin-selection or reading-position protection.Why This Change Was Made
Delete the four-line
@starting-styleblock at its CSS owner. Initially mounted desktop side surfaces show their already placed content immediately. Geometry, opacity, and display transition declarations remain.The measured-range and reading-edge reveal in
chat-transcript-layout-solid.tsx:205andchat-transcript-virtualizer-host.ts:742stays unchanged. Estimated rows remain hidden until measurement and placement complete. No new persisted facts, server storage, protocol, or runtime configuration changes.The native fixture retains a saved narrow dashboard pane, the complete tall cached reply, collapsed activity at its top, and twelve trailing hidden custom messages. It also includes bundled Workboard and synthetic theme/board modules with lazy chunks on both plugin asset routes. The rig waits for each peer's actual viewer-declaration acknowledgment before pausing it; the existing three-viewer preparation check remains.
User Impact
Reloading a saved dashboard layout shows the placed conversation immediately instead of replaying a side-surface entrance fade. Other newly mounted desktop side surfaces also skip that entrance fade.
Evidence
Separate read-only attribution capture (instrumented for attribution, removed before timed builds):
The dashboard root cleared
visibility:hiddenat 536.5 ms; its first visible DOM sample arrived at 785.8 ms. Its assistant row remained 6410.5 px tall, scroll height 14261 px, and distance from the end 0. The 300 px client width excludes the scrollbar from the 320 px outer pane. Chat made two measurement calls and dashboard three; all returned unchanged. The initial 8–9 dashboard ResizeObserver callbacks already reported final sizes. The transient layout-ready change accompanies hello on both routes and does not re-hide the completed range.Timed comparisons use unprofiled production UI bundles with the same browser probes in both arms, on one quiet AWS
c7a.4xlarge, repository Playwright Chromium 156.0.8078.4, 3,000-session native Gateway fixture, 80 ms CDP network shaping, and 11 interleaved AB/BA pairs per route plus A/A. CDP shaping is not calibrated per-RPC wire RTT.Visible transcript DOMis a viewport/opacity-aware DOM milestone, not compositor first-pixel timing. Element Timing observations missing under the baseline fade are reported as unavailable; they are not substituted with DOM times.Baseline/candidate
Times in ms except CLS; medians [Q1, Q3]. Deltas are candidate minus baseline, paired by interleaved index.
Baseline/candidate: all per-pair deltas
chat
dashboard
A/A control
Times in ms except CLS; medians [Q1, Q3]. Deltas are candidate minus baseline, paired by interleaved index.
A/A control: all per-pair deltas
chat
dashboard
Gate interpretation and validity
Final-head performance gate passes. Dashboard visible transcript DOM improves in 11/11 pairs with separated IQRs: 701.56 [666.99, 748.87] → 508.09 [497.21, 529.78] ms, median paired delta −200.07 ms. Its median post-row hold is 175.70 → 0 ms. Chat has mixed signs (6 better, 5 worse), overlapping IQRs, and a median paired delta of −34.44 ms; no consistent chat improvement is claimed. No observed secondary meets the standing regression definition on either route. Dashboard baseline Element Timing samples are unavailable (0/11 versus 11/11 candidate), so no paired paint-time improvement is claimed.
Reading position, row height, and pane geometry remain final in 11/11 pairs on both routes and arms. Maximum sampled end-distance and row-height changes after reveal are both 0 px, across all sampled frames. The first visible dashboard sample shows the bottom paragraph and a 6410.5 px assistant row at 320 × 1341 px outer pane geometry. Snapshot growth is 0% on both routes.
A/A's two arm UI index SHA-256 values match (
320c710e39f16ea88ca586a1177b01192be05f7cdb5f9729b98aeb9b19532016). Its dashboard median post-row holds are 160.80/161.20 ms, positive in all 22 baseline captures; the control reproduces the defect without a code difference. All 88 warm captures across A/A and A/B have one top-level document, an exact successful snapshot read, the complete 4311-character cached reply already present at first visibility, no later text changes, complete expected plugin contributions, and zero browser errors. Both comparisons ran on the same quiet AWSc7a.4xlarge(16 CPUs; pre-capture idle 93.15% A/A, 93.00% A/B), unprofiled.Synthetic visual proof
Pair 4 is the median paired dashboard DOM delta. These are raw independently captured compositor frames, with no timestamp resampling. The baseline's row is final at 524.76 ms but its right-hand conversation is still blank at 597.12 ms. The candidate's placed/visible row sample is 508.09 ms, and the 586.05 ms capture shows the end-anchored reply. Its preceding 419.39 ms and first visible 536.05 ms frames were also inspected. The full captures contain only synthetic fixture data and public product chrome. Board widget pixels are outside this transcript change.
Proof and current status
Final head:
f0356ca3ddf957b11c4f5c476b22ed116002a98a, based on2ece68aa497ef3396ffea7f414b87d4e94e7c998.AWS Crabbox lease
cbx_3421239cf604, run run_e314215ff038a70e32da86870632496a:pnpm test ui/src/styles/sidebar-region.browser.test.ts --maxWorkers=1board-split-transcript.e2e.test.ts --maxWorkers=1ui/src/components/image-lightbox.tsx: ImageLightbox; exact finding reproduced on main base2ece68aaThe full suite installed Chromium and WebKit and included serial real-Gateway fixtures. Its two failing files are:
ui/src/e2e/chat-outbox-migration.e2e.test.tswaitForControlUiInitialRosterstack on the exact base; bounded 20-execution control, 311.86 s Vitestextensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.tscreateQaCrablineTransportAdapterstack on the exact base; 78.03 s VitestExisting skipped files are
chat-steer-deferred-custody.real-gateway.e2e.test.ts,deepseek-search.real-gateway.e2e.test.ts, anddesktop-resize.real-gateway.e2e.test.ts; this change adds no skip. The complete 896-file pass/fail/skip list and raw logs are retained with the native run evidence.Exact-base control run
run_a6548e606994e9ef5e9b5c0fd159390c, leasecbx_3c4e373cddb4, AWSc7a.4xlarge, checked out main base2ece68aa497ef3396ffea7f414b87d4e94e7c998with no local patch. Its full production build passes. The unchanged production export scanner reproduces the exactImageLightboxfinding, and both failing test files reproduce the same errors and owner stacks. The native changed-file and full-suite failures are therefore inherited; no failure is waived or hidden.Final proof archive verified: 6701 entries, including full logs and timeout diagnostics. Base-control archive verified: 99 entries. Both proof and control leases are released; all earlier lane leases were also released. No locally started Gateway remains. Do not merge; the campaign lead reviews and lands the change.
Production LOC and test budget
Prescribed stat (
git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*'): +367/−31, net +336. UI runtime: −4 lines. Growth in the full prescribed diff is forced by the requested reusable native tall-row/plugin fixtures, per-frame probes, proof documentation, and exact test allocation; no runtime helper or cache is added.The single combined browser regression is 28 lines, with an exact 28-line allocation in
config/test-lines-allocations/dashboard-side-pane-initial-paint.txt. The shared test baseline and the oversized responsive test file are unchanged. The deleted initial opacity gate is the superseded machinery.