Repository navigation
fix: keep the chat composer width steady on reload - #201346
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: blocked before merge. What this changesThis PR uses the presence of a Details snapshot to restore composer geometry immediately and extends saved-width browser coverage. Example: Reload a desktop chat at 1600px with a saved 1000px composer width.
Review scores
ProductKind: Bug fix · Worth it: No · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this maintainer-authored PR open, but revise the production predicate: a snapshot created during a cold mount can now suppress the intended Details entrance. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI Details component combines pane geometry, cached session facts, and presentation readiness to reserve transcript space and control panel transitions. flowchart LR
A[Session snapshot] --> C[Details presentation]
B[Pane measurements] --> C
D[Content readiness] --> C
C --> E[Details transitions]
C --> F[Transcript reservation]
F --> G[Composer width]
Technical reviewBest possible solution: Preserve the production cold-entry behavior and use the authenticated, settled warm-reload fixture repair in #201351. Do we have a high-confidence way to reproduce the issue? Source establishes the cold-mount snapshot path and resulting transition suppression, but this read-only review ran no product code; the reported CI width failure does not independently establish a genuine warm-reload defect. Is this the best way to solve the issue? The one-line production change is small but conflates newly recorded docking with restored content; the related fixture-only repair addresses the demonstrated setup failure without changing the existing presentation contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7ce2d10eced5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1, Tests +7. Total +6 across 2 files. 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:
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:34 PM ET / 17:34 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix: keep the chat composer width steady on reload * test: check the saved composer width cap on every reload frame * test: verify the saved composer width when space allows
Related: #201177
What Problem This Solves
Reloading a desktop chat can briefly show the composer at the saved maximum width, then squeeze it as the cached Details panel opens. In CI, the composer first appeared at 1,000 px and moved through several intermediate widths before settling at 889 px.
User Impact
The composer uses the restored layout from its first visible frame while the Details panel loads its content.
Why This Change Was Made
The Details layout owner uses the cached panel snapshot for the entrance decision. Content readiness controls when Details content opens. The regression measures every sampled reload frame in Chat and New Session, then widens the viewport to verify the composer reaches the full saved width when there is room.
Evidence
97475f69415aran as merge ref7856ea5e853fwith main parentb70ce1c2adb6.git diff --checkpassed. Codex autoreview of the final staged diff againstea8755727fd9found no actionable P0–P2 issues.ui/src/pages/cron/cron-page.lifecycle.test.ts:145withexpected null not to be null. The Cron fixture mountsCronPageContentdirectly with mocked RPCs. Its relative source import graph reaches neither changed file, and the Cron test, fixtures, and editor views have identical blob IDs on the tested main parent and merge ref. The failure is unrelated to this change. The sampled scheduled UI jobs passed, so recurrence on main is unconfirmed. Tested diff · Scheduled main UI checkBlockers
The before-and-after screenshot pair is still missing. Hosted
captureUiProofuploads are available in the real-Gateway lane. This reload case runs in the bundled mock-Gateway lane. The available failure artifacts capture the settled page and cannot show the first-frame layout change.