Skip to content

fix: keep the chat composer width steady on reload - #201346

Merged
roboclaw-bot merged 3 commits into
mainfrom
flake/l98-merge-ref-regressions
Nov 18, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
flake/l98-merge-ref-regressions

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The first-frame assertion failed on scheduled main and on the merge ref of an unrelated PR.
  • 9/9 composer-layout browser tests passed in final-head hosted CI. The spec took 37.8 seconds. Head 97475f69415a ran as merge ref 7856ea5e853f with main parent b70ce1c2adb6.
  • git diff --check passed. Codex autoreview of the final staged diff against ea8755727fd9 found no actionable P0–P2 issues.
  • The aggregate CI gate is red because the Bun UI unit shard failed the Cron lifecycle case “keeps a saved model and reasoning level the catalog does not list” at ui/src/pages/cron/cron-page.lifecycle.test.ts:145 with expected null not to be null. The Cron fixture mounts CronPageContent directly 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 check

Blockers

The before-and-after screenshot pair is still missing. Hosted captureUiProof uploads 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.

@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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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: blocked before merge.

What this changes

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

  • Before: The reported browser case moves from 1000px through intermediate widths to 889px.
  • After: The patch intends to apply the final Details reservation immediately while preserving the 1000px preference when the viewport widens.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is narrowly scoped, but candidate behavior proof is absent and snapshot presence introduces a concrete cold-loading transition regression.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: No · Fix scope: Complete
User problem: The composer can visibly change width while Details reserves its desktop column.
Reason: The cited failure has a documented fixture-level explanation, while this production change suppresses intentional cold-loading motion; maintainer authorship settles direction authority but does not establish the repair's correctness.

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
Reviewed head: 97475f69415aa15faea244e1c22c68b12c8289f4

Before merge

  • Preserve the cold-panel fade after recording docking (P2) - During a cold desktop mount, position() can write a docking-only Details snapshot before contentPending clears. The header then supplies that newly created object as cachedDetails even though subagent and automation content is still unavailable. This predicate classifies the panel as restoring, so data-restoring disables its opacity transition when sessionOpened becomes true: the compact loading panel pops into view instead of using the fade retained on main. Keep cold presentation distinct from snapshots produced by that same mount; the reported reload fixture can be repaired through fix(ci): prepare a warm snapshot before checking saved chat width #201351 without changing this predicate.
  • Product: not worth merging - The cited failure has a documented fixture-level explanation, while this production change suppresses intentional cold-loading motion; maintainer authorship settles direction authority but does not establish the repair's correctness.

Findings

  • [P2] Preserve the cold-panel fade after recording docking — ui/src/pages/chat/components/chat-details.tsx:438

Tests

  • Missing end-to-end proof: Provide redacted before/after recording or frame-width traces from an authenticated warm reload on the candidate build, plus the cold Details reveal; the supplied material does not show candidate red/green behavior.
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P2] Preserve the cold-panel fade after recording docking — ui/src/pages/chat/components/chat-details.tsx:438
    During a cold desktop mount, position() can write a docking-only Details snapshot before contentPending clears. The header then supplies that newly created object as cachedDetails even though subagent and automation content is still unavailable. This predicate classifies the panel as restoring, so data-restoring disables its opacity transition when sessionOpened becomes true: the compact loading panel pops into view instead of using the fade retained on main. Keep cold presentation distinct from snapshots produced by that same mount; the reported reload fixture can be repaired through fix(ci): prepare a warm snapshot before checking saved chat width #201351 without changing this predicate.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7ce2d10eced5.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 07cdebc adds ui/src/pages/chat/components/chat-details.tsx:124 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 07cdebc660cd; files: ui/src/pages/chat/components/chat-details.tsx)

PR surface

Source -1, Tests +7. Total +6 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 3 -1
Tests 1 13 6 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 15 9 +6

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:

  • add P2: This concerns limited desktop layout and entrance-animation behavior without a blocked chat workflow.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This concerns limited desktop layout and entrance-animation behavior without a blocked chat workflow.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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:34 PM ET / 17:34 UTC.

@roboclaw-bot
roboclaw-bot merged commit 8c11dfe into main Nov 18, 2026
114 of 117 checks passed
@roboclaw-bot
roboclaw-bot deleted the flake/l98-merge-ref-regressions branch November 18, 2026 18:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
* 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
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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant