Repository navigation
fix(ci): prepare a warm snapshot before checking saved chat width - #201351
vincentkoc wants to merge 2 commits into
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 prepares authenticated, persisted Details state and settled reference geometry before measuring saved chat width across reload. Example: The browser test reloads a chat at a 1600px viewport with a saved 1000px composer preference.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a focused fixture repair without weakening reload assertions or changing production behavior; no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser suite supplies mock Gateway responses, lets the existing snapshot owner persist Details state, reloads the page, and checks composer geometry. flowchart LR
A[Browser fixture] --> B[Mock Gateway]
B --> C[Details snapshot owner]
C --> D[Persisted warm snapshot]
D --> E[Reloaded chat]
E --> F[Thirty frame width assertion]
Technical reviewBest possible solution: Prepare the existing warm-reload fixture through its current authentication and snapshot owners while preserving production entrance behavior and every reload assertion. Do we have a high-confidence way to reproduce the issue? Source inspection supports the missing warm-admission and snapshot preconditions; the PR reports a failing unchanged case and passing repaired case, but this read-only review ran no tests. Is this the best way to solve the issue? The patch uses existing fixture contracts, waits before the measured reload, and preserves the original assertions; the simplification pass found no unnecessary production machinery or duplicate test group. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b70ce1c2adb6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +35. Total +35 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
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 18, 2026, 12:21 PM ET / 17:21 UTC. |
|
Superseded by #201346, merged as 8c11dfe. Its hosted UI proof passed both original saved-width cases and all nine composer cases. The original CI defect is covered, so this separate fixture rewrite is no longer needed. The accepted auto-merge request has been retired; closing without integrating the redundant change. |
What Problem This Solves
The saved chat-width reload test can reload without an admitted warm boot record or a settled Details snapshot. It then tests an intentional cold Details entrance instead of a warm reload, producing changing first-frame composer widths.
User Impact
No user-visible change. This repairs the browser fixture while keeping every original width assertion, including all 30 first-visible-frame samples. The New Session variant remains unchanged.
Why This Change Was Made
Use the existing trusted-proxy mock authentication contract, provide a canonical empty cron inventory, and wait for complete Details receipts and the existing finite frame animations before flushing the snapshot store and capturing the reference width. These preconditions all run before reload; the measured reload has no new waits or relaxed bounds.
The setup follows the existing warm-reload fixture from #194142 and preserves the intentional cold entrance from #192435.
Evidence
3d97630652690e5747c6cf1af1c6bf46ee8da91d; the remaining GitHub checks retain their normal merge gates.aa3eaa2182f3..3d9763065269found no actionable correctness or security findings (0.88).Related alternative: #201346 changes the production entrance predicate; this PR instead keeps the intentional cold entrance and corrects the warm-reload fixture.