Skip to content

fix: keep the New Session composer steady on load - #201165

Merged
roboclaw-bot merged 16 commits into
mainfrom
openclaw/gentle-lobster
Nov 18, 2026
Merged

roboclaw-bot merged 16 commits into
mainfrom
openclaw/gentle-lobster

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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 checkoutPending path 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
  • 0:00 · Desktop startup: the 6.8 CSS px input drop is gone, and the model label appears without flashing “Default model.”
  • 0:05 · Mobile web startup: the highlighted branch placeholder holds the checkout row as the Git workspace arrives.
  • 0:11 · Returning to the tab: the known machine name stays visible until the refresh returns its new value.

Captured with identical mocked Gateway responses in Chromium on base e25ad96fb3d6 and the earlier visual fix. Mobile uses 400 × 844 touch emulation. Mobile checkout screenshots · Desktop startup screenshots · Staggered model-loading screenshots.

Review follow-up

  • The paired UI asset check passed on Node 24.22.1 against the integrated main revision 80607c31486e: +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.
  • 44 focused Chromium E2E tests passed on the reconciled branch, covering checkout loading, workspace validation, mobile placement, and staggered model replies. The two branch-refresh test failures reproduced locally: the test typed a custom prefix but expected nonmatching suggestions. The fixture now supplies matching branches and still asserts that the typed value survives refresh. UI typecheck, formatting, and diff checks passed.
  • The preceding budget repair was measured against a real isolated Gateway (24 synthetic agents, 63 catalog models and a Git workspace). Chromium navigated from Activity, holding and releasing unchanged Gateway replies. Summed non-input layout-shift entries 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

roboclaw-bot and others added 2 commits November 18, 2026 11:50
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 1fee97dd-4381-41ad-988f-9fc39a08cb00
@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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Before

Before: temporary labels and the composer starts above the settled position

After

After: the composer starts in its settled position, with short loading placeholders

Annotated before

The earlier input position and temporary labels

Annotated after

The settled input position and reserved label space

Chromium, 1280 px, with identical mock Gateway fixtures holding agent and placement data. Before: e25ad96fb3d6. After: the tested patch in this PR.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Layout comparison video

The 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: e25ad96fb3d6. After: 87ed2157652a.

new-session-before-and-after.mp4

roboclaw-bot and others added 2 commits November 18, 2026 12:07
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 3814be77-e913-4c6b-94e5-dc81beb2328a
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Staggered model startup

This 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 (87ed2157652a) shows Default model between those replies. The follow-up (bca9dc6859961) keeps the placeholders until the model is known.

Before

Before: Default model flashes while the first catalog is pending

After

After: both placeholders persist while the first catalog is pending

Annotated before

Temporary Default model label

Annotated after

Placeholders stay visible

Video

model-loading-handoff.mp4

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Desktop and mobile startup comparison

Both clips compare e25ad96fb3d6 with PR head bca9dc6859961, using identical mocked Gateway replies: agent and placement data arrive first, then the model catalog. This supersedes the earlier videos.

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.mp4
new-session-mobile.mp4

roboclaw-bot and others added 2 commits November 18, 2026 12:15
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 2702b8a3-4d5f-42ad-89e6-e9cd01c9a1a1
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Complete New Session before/after

One 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 e25ad96fb3d6 and bca9dc6859961 (before the final non-visual code cleanup). Mobile is 400 × 844 touch emulation.

new-session-before-and-after.mp4

roboclaw-bot and others added 2 commits November 18, 2026 12:23
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: ca9eac6d-7596-4a58-b194-ded1c552f012
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Checkout row stays in place

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

Before

Earlier PR build has no checkout row while the workspace loads

After

Updated build reserves a row with the branch icon and a placeholder

Annotated before

Folder initially occupies the row where checkout will appear

Annotated after

Branch placeholder holds the final checkout position

Updated full video

Desktop 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

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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: needs maintainer review before merge.

What this changes

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

  • Before: The input drops about 6.8 CSS px and briefly displays generic location and model labels.
  • After: The input starts at its settled position while placeholders give way to resolved labels.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused visual repair with sufficient behavior evidence and no identified correctness defect; exact-head CI is still running.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after screenshots show the changed loading presentation, supported by self-contained isolated-Gateway layout measurements at three widths and recorded staggered-loading and tab-return scenarios; video inspection was limited by reviewer infrastructure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: New Session moves already visible controls and briefly shows provisional labels while startup facts arrive.
Reason: The maintainer-authored direction has demonstrated visual value, retains existing interaction behavior, and introduces no user-facing settings or independent state owner.

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
Reviewed head: 47fb261f800677759b912169eb07d56f04aa71ce

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +62, Tests +186. Total +248 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 168 106 +62
Tests 4 197 11 +186
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 365 117 +248

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:

  • P3: The demonstrated problems are bounded layout movement and temporary labels; typing and session creation remain available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-18T12:43:21.921Z sha 40f5a7e :: needs changes before merge. :: [P2] Keep the added UI assets within the inherited bundle allowance
  • reviewed 2026-11-18T13:05:45.725Z sha 2e72709 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-18T13:22:33.460Z sha f7f7291 :: needs changes before merge. :: none
  • reviewed 2026-11-18T13:44:04.951Z sha 1f3f348 :: needs maintainer review before merge. :: none

Reviewed November 18, 2026, 8:59 AM ET / 13:59 UTC (Revision 5).

roboclaw-bot and others added 2 commits November 18, 2026 12:56
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 8701835f-d7f2-41e5-b05b-c0e5e88e25d1
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 18, 2026
roboclaw-bot and others added 2 commits November 18, 2026 13:15
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 25d9fe0c-330e-45f0-8bdf-1a8fd07e3e5c
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 18, 2026
roboclaw-bot and others added 2 commits November 18, 2026 13:37
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 534848dd-2b0d-4018-9c98-7f827197247a
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 18, 2026
roboclaw-bot and others added 2 commits November 18, 2026 13:52
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 35e8b99c-599b-491c-923b-46dd6bea4033
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot merged commit e79905a into main Nov 18, 2026
95 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/gentle-lobster branch November 18, 2026 14:08
roboclaw-bot added a commit that referenced this pull request Nov 18, 2026
roboclaw-bot added a commit that referenced this pull request Nov 18, 2026
roboclaw-bot added a commit that referenced this pull request Nov 18, 2026
roboclaw-bot added a commit that referenced this pull request 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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