Skip to content

fix(ci): prepare a warm snapshot before checking saved chat width - #201351

Closed
vincentkoc wants to merge 2 commits into
mainfrom
fix/warm-details-docking-restore-20261119
Closed

vincentkoc wants to merge 2 commits into
mainfrom
fix/warm-details-docking-restore-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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

  • Original scheduled failure and latest recurrence: composer width moved from 1000px to 889px after reload.
  • The unchanged local case reproduced that failure. Ordered receipt inspection showed its apparent cached docking value was produced by the same cold mount.
  • Completed fixture: the exact chat case passed, as did the existing warm-reload and cold first-load cases (3 passed). The unchanged New Session variant passed separately and its proof was reused.
  • Intermediate probes isolated two missing preconditions: token-mode authentication without a token prevented warm boot admission; after correcting admission all 30 reload frames were 889px, but the reference was captured mid-animation at 922px. Waiting for the existing finite animation completion fixes that reference setup.
  • Targeted formatting, type-aware lint, and UI-E2E type checks passed on macOS with Chromium and Node 24.22.1. The selected Linux UI-E2E job also passed on the exact PR head; remaining broad CI is still running.
  • Exact-head Linux UI-E2E passed at 3d97630652690e5747c6cf1af1c6bf46ee8da91d; the remaining GitHub checks retain their normal merge gates.
  • Fresh local ClawSweeper review of aa3eaa2182f3..3d9763065269 found 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.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 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.

@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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture can exercise a cold Details entrance or capture an intermediate reference width.
  • After: The fixture prepares a warm snapshot before checking the unchanged 30 first-visible-frame samples.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is coherent and preserves coverage; validation consists of reported browser-harness results and pending hosted checks.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair needs no separate shipped-entry-point demonstration; the body reports Chromium failure reproduction and passing repaired, warm-reload, cold-load, and New Session cases.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The saved-width browser check can report intentional cold-entry movement as a warm-reload regression.
Reason: The maintainer-authored direction preserves intentional product behavior and makes an existing regression check exercise its intended setup.

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
Reviewed head: 3d97630652690e5747c6cf1af1c6bf46ee8da91d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Saved-width reload fixture keeps the original intent (e4300a4: The width feature added first-visible-frame coverage for saved Chat and New Session widths; a later fixture change waited for the composer element.)
  • Warm versus cold Details presentation keeps the original intent (fix(ui): stop Details from snapping new chats left #192435: Fresh Details reveals animate with the conversation, while cached restoration remains immediate.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Marvinthebored: Raw commit e4300a4 adds ui/src/e2e/composer-layout.e2e.test.ts:238 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e4300a42a77d; files: ui/src/e2e/composer-layout.e2e.test.ts)

PR surface

Tests +35. Total +35 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 35 0 +35
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 35 0 +35

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a recurring browser regression fixture with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 18, 2026, 12:21 PM ET / 17:21 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 17:24
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 17:28
@vincentkoc
vincentkoc disabled auto-merge November 18, 2026 18:20
@vincentkoc

Copy link
Copy Markdown
Member Author

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.

@vincentkoc vincentkoc closed this Nov 18, 2026
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant