Repository navigation
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. |
Prepare the existing desktop Details boundary before mounting a cached route and retain its progress presentation in the scoped browser snapshot until live reads settle. Failed optional child reads still yield to live parent activity. Cover native chat and dashboard reloads, unchanged reconnects, and changed live facts.
6d95daa to
5fe3c86
Compare
|
Codex review: blocked before merge. What this changesThis PR prepares cached desktop Details before mounting chat and preserves its progress presentation until live reads settle. Example: Reload a signed-in chat with Details open and a saved running task.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open as a focused maintainer experiment: current main still lacks first-pane Details restoration, and the explicit do-not-merge hold remains appropriate. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI restores scoped browser snapshots into chat panes; Details combines those display facts with live progress cards and child-session observations while existing owners retain action authority. flowchart LR
A[Scoped browser snapshot] --> B[Chat route preparation]
B --> C[Cached chat pane]
C --> D[Desktop Details renderer]
E[Live progress owner] --> D
F[Child roster owner] --> D
D --> G[Display snapshot receipt]
G --> A
Technical reviewBest possible solution: Retain the existing snapshot and live owners, and land first-pane restoration only if the declared experiment succeeds. Do we have a high-confidence way to reproduce the issue? Current-main source leaves desktop Details lazy after route preparation and derives progress exclusively from arriving live facts; the body reports a red-before/green-after browser regression, which this read-only review did not execute. Is this the best way to solve the issue? The patch uses the existing route, renderer, scoped snapshot writer, and roster owner, with no demonstrated unnecessary production layer; measurements must establish whether moving Details preparation before pane mounting improves the complete reload. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc1833d1f77e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +120, Tests +235, Docs +2, Other +11. Total +368 across 16 files. Added test files: 1. View PR surface stats
Review metrics
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 October 31, 2026, 4:13 PM ET / 20:13 UTC. |
What Problem This Solves
A signed-in reload of a dashboard deep link can restore the conversation while Details is still empty, then populate and repaint it. The campaign evidence recorded placeholder, populated, and final-style stages around 729–1045 ms, 1345 ms, and 1595 ms. No private captures or conversation content are attached here.
Stopped experiment. Do not land. This candidate fixes the empty desktop composition admission and cached progress-runtime swap, but fails the declared performance gate and retains a later Details repaint.
Why This Change Was Made
The existing cached Details admission suppressed its loading fallback without resolving the desktop lazy renderer. The empty generic surface is exactly 34px: 16px padding on both sides plus two 1px borders. When the desktop body arrives, its structural selector activates the final layout and typography variables. Route preparation now preloads that same lazy boundary alongside the route entry, then joins both before mounting the cached pane.
The saved progress card also lacked its display-runtime facts. Recomputing those from disconnected/partial live state changed activity and step presentation during reload. The existing scoped Details snapshot now retains matching revision/updatedAt and display inputs until live owners settle. Optional child-read failure is published by the existing roster owner so fresh parent facts can replace cached running activity. The duplicated own-parent/hydration predicate was removed. Cold retains its lazy/shimmer contract. No new store, server schema, protocol, product configuration, or cached action authority.
Subagent and automation receipts already survived their independent live readiness/access gates. They were not the cause of the whole-panel empty box. The desktop stylesheet is a static dependency of the composition; current evidence does not establish late CSS arrival after populated DOM.
User Impact
The native regression restores complete cached Details content with the first pane and retains the same semantic/geometry presentation through an unchanged reconnect. It also adopts changed live progress and a finished parent when child reads are denied.
The real-Gateway compositor campaign still records one later Details regional change in every candidate chat run. In the inspected first run, the content is already present, then glyph rendering changes. A fixed progress-text crop changes from 0 to 2,478 pixels with RGB channel spread greater than 25; this supports a glyph-rendering repaint, but does not identify its browser/font/layout cause. The historical final restyle is therefore not claimed solved. More work before the first paint also produces an unacceptable long-frame tradeoff.
Proposed release-note context, if a successor lands: desktop Details and progress presentation restore with the cached conversation before in-place live refresh. This experiment is not a release or landing.
Evidence
Head
5fe3c86ad09bd87e06f88b6589e2cf0f0ac0ad60; baselineb021e8ec1979b1cb6410b6f159b3d187f221f1fa. One dedicated AWSc7a.4xlarge, leasecbx_b6a5a82abf4e, 16 CPUs, repo Playwright Chromium 156.0.8078.4, signed-in synthetic Gateway state, 3,000 retained sessions, 80 ms network shaping, 8 s observation windows. Eleven interleaved AB/BA pairs on each route, then eleven A/A pairs on the same box. A/A supplied the identical candidate index hash to both arms. CPU idle before capture: comparison 93.29%, A/A 93.31%.Gate failure: chat LoAF blocking has separated worse IQRs and is worse in 11/11 pairs. Median paired rise is 89.4 ms, exceeding the largest absolute A/A delta of 72.6 ms. FCP/row-paint paired signals are also adverse, with noisier A/A spreads. Dashboard secondaries have overlapping IQRs and mixed signs. CLS is unchanged in median.
The primary is not established: the regional census has zero post-candidate Details changes in 0/11 candidate chat runs, with one later change each, 100–417 ms after the DOM-correlated app candidate. These boundaries are not an attestation of first visible app paint; representative first-app and subsequent PNGs were inspected, but a complete 11-run semantic paint audit was stopped after the adverse performance result. Baseline has one or two later regional changes per run. Dashboard was the non-regression route and did not have visible Details in this rig.
Fixture limits: the current native capture still shows the default “My sessions” owner filter; the attempted preference replay did not reproduce the full requested operator profile. The 97 configured groups/102 section-order entries were not seeded, and targets are unarchived. This is a rejection on the reusable fixture, not proof of the exact operator matrix or the campaign exit criterion. The started Team-scale run was stopped and is not used as evidence.
Timing summary and controls
Candidate minus baseline; lower is better. Values are milliseconds except dimensionless CLS. Row paint is browser Element Timing; final rows is DOM settlement. App DOM candidates and inspected pixels remain distinct.
chat AB: every paired delta
chat A/A: every paired delta
dashboard AB: every paired delta
dashboard A/A: every paired delta
Validation and cost
pnpm test ui/src/e2e/chat-details-reload.e2e.test.ts --maxWorkers=1: 37.72 s wall (32.07 s Vitest duration). It uses real cache producer receipts and covers unchanged reconnect, changed live plan, and failed optional child reads with fresh parent facts. It does not prove compositor stability.3269c552c0b2; the pinned comparison baseline also visibly reproduces the empty Details box. The later scheduled exact-base test-file replay was not run after the stop decision.cbx_b6a5a82abf4ereleased. Earliercbx_940920cfea16was released during checkout before measurements. No owned Gateway remains.Production LOC and files
Requested stat (
git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*'): +162/−31 = +131. UI runtime: +119; proof CLI: +8; generated manifest/test allocation: net +4. The positive growth is the typed progress display-input snapshot and the existing roster's settled-read fact. The cold placeholder remains by explicit contract.Touched: route preparation; Details lazy boundary, Progress, Background and props; Details snapshot schema/owner; child-roster owner/projection/types; native regression and exact +235 test-line allocation (230 new +5 existing); generated boot manifest; Control UI docs; native rig
--init-scriptreplay option. No changelog edit.Inspected synthetic visual evidence
These are original PNGs from the isolated real-Gateway fixture on the measured head/baseline. They contain synthetic data only. The times are DOM-correlated app candidates, not audited first-visible-paint assertions.
Baseline candidate at 968.5 ms: empty 34px Details surface.
Candidate app candidate at 1044.8 ms: populated cached Details.
Candidate at 1244.8 ms: later glyph repaint, with the same visible Details content.
Open attribution for a successor
Reduce the work on the initial cached mount instead of moving the same work earlier. Separately identify the remaining glyph/compositor repaint while preserving the real browser paint behavior. The current captures do not support blaming a late font download or claiming the historical final restyle solved. Match the full grouping/owner/archived fixture before making an operator-profile claim.