Skip to content

fix(ui): stop mobile model controls shifting as catalog loads - #194072

Merged
steipete merged 1 commit into
mainfrom
solid2/hf-systems-shift-named-1106
Nov 6, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/hf-systems-shift-named-1106

Conversation

@steipete

@steipete steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #193792

What Problem This Solves

Mobile New Session briefly recenters its model controls when catalog metadata arrives. The Systems stability test started observing on New Session, so it also attributed that real shift to Systems.

User Impact

The model stays anchored while its skeleton becomes the selected model and effort control. The mobile loading state keeps the label space and withholds the chevron until the catalog arrives. Existing tags, controls, lazy boundaries, and the Systems zero-shift assertion remain intact.

Why This Change Was Made

The reported CI job points into New Session. A 6× CPU-throttled production-bundle reproduction matches it exactly: at 400 px the model-controls group shrinks from 131.5 to 106.578125 px, moves from x=133.25 to x=145.71875, and produces CLS 0.0002235138888888889.

CSS now gives the mobile group the available footer space and anchors its label. At 560 px, the same proof also caught a late provider icon moving the text; the compact icon treatment now covers that width. The Systems observer starts after the Systems route and body have rendered, before its deferred inventory/backups are released. It still requires exactly zero non-input layout shift.

Equivalent rules in the same stylesheet are consolidated, and redundant declarations already supplied by the base mobile-trigger rule are removed. The retired selector's stylelint allowance is pruned. No JavaScript imports or runtime state are added.

Evidence

Check Result
New regression against merge-base bundle Fails with the exact 131.5 → 106.578125 px geometry from CI
Production-bundle proof, 6× CPU throttle CLS 0 at 320, 390, 400, 430, and 560 px
New Session focused tests Three throttled mobile cases plus the existing deferred-catalog/draft case pass
Systems focused tests All 18 width/disk/backup stability cases pass; zero-shift assertion unchanged
pnpm tsgo:ui, scoped lint/format, stylelint, git diff --check Pass
Production Knip Pass
pnpm ui:build Pass
Same-host startup JS, base → head 90,280 → 90,280 B gzip, 3 requests
Same-host startup CSS, base → head 36,643 → 36,643 B gzip, 1 request
Same-host total CSS, base → head 324,781 → 324,834 B gzip (+53 B, within 64 B variance); raw 1,678,048 → 1,678,198 B, below the 1,678,428 B cap
Independent Codex review Clean at P0–P2
Full CI 39 jobs succeeded, 26 skipped; only the reproduced test-line deficit and its aggregate gate failed

The standalone budget check reports existing total-CSS and chat-boot-JS overages on the base as well. Chat boot JS remains exactly 1,288,890 B; the base-aware comparison preserves the caps. The PR ratchet job reports test lines 6,536,264, ceiling 6,536,250: 14 over. Replaying the checker against the exact merge-base Git snapshot (using its alternate index and the latest completed scheduled-main head as comparison) also fails: 6,536,224 lines, ceiling 6,536,210: the same 14 over. That scheduled run predates this debt and passed this job; the merge-base replay establishes the inherited failure. This PR's 40 added lines have an exact 40-line allocation, leaving the deficit unchanged. All UI and real-Gateway shards passed. The native auto request was retired, and the verified head landed through the documented inherited-failure route as c738ce2. The failed budget check remains recorded; no functional failure was waived.

Production CSS: 1,652 → 1,653 lines (+1). Touched tests: 938 → 978 lines (+40). Solid refactor census: no effects, subscriptions, listeners, queries, owner handoffs, or runtime imports added. No Testbox/Crabbox lease or local Docker was used.

All screenshots below use synthetic Gateway fixtures and were inspected locally. “Loading” holds models.list; “ready” releases it.

Before: loading model controls

Before: controls recenter when ready

After: reserved loading space

After: anchored model and effort controls

Reserve the New Session model group's mobile footer space as metadata arrives, keep the pending affordance stable, and start Systems layout observation after that route has mounted. Add CPU-throttled coverage and consolidate equivalent CSS without changing startup bytes.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T10:14:41.930773Z d21391b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 6, 2026 10:17
@steipete
steipete disabled auto-merge November 6, 2026 10:22
@steipete
steipete merged commit c738ce2 into main Nov 6, 2026
101 of 106 checks passed
@steipete
steipete deleted the solid2/hf-systems-shift-named-1106 branch November 6, 2026 10:28
@steipete

steipete commented Nov 6, 2026

Copy link
Copy Markdown
Contributor 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 7, 2026
…penclaw#194072)

Reserve the New Session model group's mobile footer space as metadata arrives, keep the pending affordance stable, and start Systems layout observation after that route has mounted. Add CPU-throttled coverage and consolidate equivalent CSS without changing startup bytes.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant