Repository navigation
fix: keep the New Session composer steady on load - #201165
Conversation
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 1fee97dd-4381-41ad-988f-9fc39a08cb00
|
🦞👀 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. |
Layout comparison videoThe dashed guide marks the settled top edge of the input. The upper recording drops 6.8 CSS px when the controls load; the lower recording stays in place. Both use Chromium at 1280 px and the same deliberately delayed mock Gateway data. Before: new-session-before-and-after.mp4 |
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 3814be77-e913-4c6b-94e5-dc81beb2328a
Staggered model startupThis supersedes the earlier clip for the model-label transition. In Chromium at 1280 px with the same mock Gateway responses, the agent and placement arrive first, then the model catalog. The earlier PR head ( BeforeAfterAnnotated beforeAnnotated afterVideomodel-loading-handoff.mp4 |
Desktop and mobile startup comparisonBoth clips compare Desktop (1280 px Chromium): The input drops 6.8 CSS px before the fix and stays in place after it. Teal marks show the input’s final top edge. The “Default model” flash is gone. Mobile web (400 × 844 Chromium touch emulation): The input stays docked in both clips. Before, generic location and model labels flash; after, placeholders give way to the real labels. This was not recorded on a physical device. Clips are attached below in desktop, then mobile order. new-session-desktop.mp4new-session-mobile.mp4 |
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 2702b8a3-4d5f-42ad-89e6-e9cd01c9a1a1
Complete New Session before/afterOne video: 0:00 desktop startup, 0:05 mobile web startup, 0:11 returning to the tab. It shows the desktop input shift, the location and model placeholders through staggered loading, and the known machine name staying visible while it refreshes. Recorded in Chromium with identical mock Gateway replies against new-session-before-and-after.mp4 |
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: ca9eac6d-7596-4a58-b194-ded1c552f012
Checkout row stays in placeIn the earlier PR build, the mounted checkout row pushed the machine and folder upward on mobile. The updated Git workspace reserves that row with the branch icon and a label placeholder from first paint. The input stays docked, and the placeholder disappears for a plain workspace. BeforeAfterAnnotated beforeAnnotated afterUpdated full videoDesktop and emulated mobile startup compare the original base to the updated PR source with matched mock Gateway responses. The unchanged machine-name refresh chapter reuses the previous capture. new-session-before-and-after.mp4 |
|
Codex review: needs maintainer review before merge. What this changesThis PR reserves New Session loading space, replaces provisional labels with placeholders, and preserves the known machine name during refresh. Example: Open New Session in Chromium at 1280 px with delayed agent and model replies.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses demonstrated startup layout defects beyond the merged checkout fix, with no actionable correctness findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI consumes agent, machine, workspace, and model-catalog facts through existing draft owners and renders the New Session composer and placement controls. flowchart TD
A[Gateway replies] --> B[Draft Gateway owner]
A --> C[Agent and model owners]
A --> D[Repository owner]
B --> E[New Session controls]
C --> E
D --> E
E --> F[Composer and placement layout]
Technical reviewBest possible solution: Keep loading geometry and accepted labels stable through the existing draft, repository, and shared picker owners. Do we have a high-confidence way to reproduce the issue? Current-main source retains the initial heading-height mismatch and clears the machine name on visibility transitions; supplied before/after captures and the related machine-label report establish observable triggers. Is this the best way to solve the issue? The patch addresses those causes with reserved geometry and derived readiness, reuses the merged checkout owner, and preserves background catalog loading, setup, errors, and connection invalidation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb34e996e8e4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +62, Tests +186. Total +248 across 13 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: 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 HistoryReview history (4 earlier review cycles)
Reviewed November 18, 2026, 8:59 AM ET / 13:59 UTC (Revision 5). |
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 8701835f-d7f2-41e5-b05b-c0e5e88e25d1
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 25d9fe0c-330e-45f0-8bdf-1a8fd07e3e5c
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 534848dd-2b0d-4018-9c98-7f827197247a
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 35e8b99c-599b-491c-923b-46dd6bea4033
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>












What Problem This Solves
On a cold New Session load, the desktop input drops when the agent picker appears. On mobile web, the checkout control can push the machine and folder rows up when it arrives. Machine, folder, and model controls also flash generic labels before their real values arrive.
User Impact
The input starts in its settled position. Short placeholders replace temporary labels without delaying typing. For Git workspaces, the branch placeholder reserves the mobile checkout row; plain workspaces still omit the control once loaded. A known machine name stays visible during refresh, and the second model control appears only when relevant settings are available.
Why This Change Was Made
Match the heading and agent picker heights, reserve the mobile checkout row, and keep the model placeholders through staggered agent and catalog replies. The conflict resolution reuses the checkout skeleton and repository-owned
checkoutPendingpath from #201179 rather than rendering a second pending control. The shared picker owns accessible labels; the shared model picker uses one visible label source. Background catalog refresh, model setup, and error behavior are unchanged.Reported and reviewed by @jesse-merhi.
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence
Complete New Session before/after
new-session-before-and-after.mp4
Captured with identical mocked Gateway responses in Chromium on base
e25ad96fb3d6and the earlier visual fix. Mobile uses 400 × 844 touch emulation. Mobile checkout screenshots · Desktop startup screenshots · Staggered model-loading screenshots.Review follow-up
mainrevision80607c31486e: +64 B raw CSS, +46 B gzip CSS, −132 B gzip chat boot JS. New Session boot gzip JS was 820,997 B (cap 822,243 B). No budgets were changed.layout-shiftentries at 400 / 820 / 1280 px were 0.018346 / 0.006055 / 0.003227 on the base and 0.000293 / 0.000739 / 0.000368 on the repair. The editor and actions stayed in place, and mobile placement rows no longer jumped 38 px. Label sizing still causes small residual shifts. No physical device or provider calls were used.🦞 Made with OpenClaw
Worked on by