Skip to content

fix(ui): keep empty model picker beside composer actions - #198593

Merged
steipete merged 3 commits into
mainfrom
fix/ci-435405-empty-model-spacing
Nov 14, 2026
Merged

steipete merged 3 commits into
mainfrom
fix/ci-435405-empty-model-spacing

Conversation

@steipete

@steipete steipete commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

On phones, an empty model catalog left “No models available” nearly 60 px away from Dictate. The fit-content trigger introduced in #198509 stayed at the leading edge of its reserved track even when no effort chip occupied the rest of that track.

Expose admitted empty-catalog state on the existing model-trigger binding and align that status to the trailing edge of its track. Loading and selected-model layouts retain their existing alignment. The redundant tools data marker is removed; the two consumers now check the existing accessible “No tools” label directly. The current empty status stays 2 px from Dictate before opening, while open, and after closing.

Evidence

The initial revisions exceeded CSS and JavaScript budgets. Removing redundant selector scope and reusing the retired marker’s binding position avoids adding a separate reactive class binding. The complete production comparison against 0b7cd35571e7cbfb7544305379c7c4a1dac26b03 passes:

Metric Baseline Candidate Change
Largest shared JS gzip 574,983 B 574,975 B −8 B
Chat boot JS gzip 1,314,711 B 1,314,703 B −8 B
New Session boot JS gzip 817,921 B 817,913 B −8 B
All CSS raw 1,750,168 B 1,750,222 B +54 B
All CSS gzip 338,398 B 338,412 B +14 B

Validation: the original 390 px spacing test failed before the fix. The final production-bundle run passes both spacing widths (1440 and 390), all three CPU-throttled loading cases (320, 400, 560), deferred model-metadata admission, and chat-only model switching. All 41 model-picker/catalog/runtime unit tests pass. Targeted default tsrs, type-aware lint, stylesheet lint, formatting, and whitespace checks pass. Fresh whole-delta independent review completed with no actionable P0–P2 findings. Inspected before/after captures use synthetic data.

The chat-only browser proof includes the provider-row reveal ordering already fixed in #198537; that prerequisite remains owned there and is not duplicated in this PR.

Release-note context: Control UI keeps the empty-model status beside Dictate on phones.

Before: empty model status leaves a gap before Dictate

After: empty model status stays beside Dictate

@clawsweeper

clawsweeper Bot commented Nov 14, 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.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T04:37:50.913988Z d308813 New commits
ℹ️ 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.

@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. labels Nov 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR aligns the empty-model status beside Dictate in the narrow New Session composer.

Example: Open New Session at 390 × 900 with an empty model catalog.

  • Before: “No models available” sits nearly 60 px from Dictate.
  • After: The status sits beside Dictate; the reported measured gap is 2 px.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visual behavior is convincingly demonstrated, while a directly attributable asset-budget failure remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the New Session empty-model trigger at 390 × 900 and visibly show the corrected alignment; the body records production-bundle spacing, loading, and deferred-metadata checks.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An empty-model status appears detached from the neighboring Dictate action on phones.
Reason: The maintainer-authored direction restores an existing spacing contract with a narrowly scoped visual repair.

Regression provenance

Regression provenance — verified: source commit 82e8cded772d by RoboClaw; canonical PR #198509 (blame-to-merge-commit).

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR repairs a demonstrated mobile spacing regression, but its added CSS causes the base-aware asset-budget check to fail.

Priority: P3
Reviewed head: ae43376e7c8aa6c7d580bad665610ca21bb0a4b8

Before merge

  • Keep the spacing repair within the enforced CSS growth budget (P2) - This rule increases built raw CSS from 1,749,973 to 1,750,097 bytes. Because the base already exceeds its ceiling, the performance check permits only 64 bytes of growth; the added 124 bytes makes the exact-head control-ui-performance check fail. Consolidate the affected CSS while retaining the demonstrated spacing and loading behavior, without raising the budget.

Findings

  • [P2] Keep the spacing repair within the enforced CSS growth budget — ui/src/styles/new-session.css:1563-1565
Agent review details

How this fits together

The Control UI model picker consumes admitted catalog state and renders the composer trigger; New Session CSS positions that trigger beside the composer actions.

flowchart LR
  A[Model catalog] --> B[Draft model owner]
  B --> C[Chat model controls]
  C --> D[Model picker trigger]
  D --> E[New Session mobile styles]
  E --> F[Composer action row]
Loading

Technical review

Best possible solution:

Keep the existing catalog owner and reserved layout track, align only the admitted empty trigger, and consolidate CSS enough to satisfy the asset budget.

Do we have a high-confidence way to reproduce the issue?

The source explains the reserved-track gap, and inspected before/after screenshots corroborate it; this read-only review did not run the reproduction.

Is this the best way to solve the issue?

The patch uses existing catalog facts and the existing layout owner, preserves loading reservation, and adds no unnecessary state or abstraction.

Full review comments:

  • [P2] Keep the spacing repair within the enforced CSS growth budget — ui/src/styles/new-session.css:1563-1565
    This rule increases built raw CSS from 1,749,973 to 1,750,097 bytes. Because the base already exceeds its ceiling, the performance check permits only 64 bytes of growth; the added 124 bytes makes the exact-head control-ui-performance check fail. Consolidate the affected CSS while retaining the demonstrated spacing and loading behavior, without raising the budget.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 72f90dde293d.

Provenance checked

  • Reserved mobile model track and compact trigger keeps the original intent (82e8cde: Keep the trigger label and chevron compact while retaining the track reserved by c738ce2 for stable catalog loading.)
  • Reactive model-trigger classes keeps the original intent (317cd3a: Preserve picker behavior while moving rendering and refs onto the Solid guardrail contract.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:build
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/new-session-page.model-picker-spacing.e2e.test.ts ui/src/e2e/new-session-page.model-catalog.e2e.test.ts --testNamePattern 'keeps the empty model picker|keeps mobile model loading steady|accepts a draft while keeping' --maxWorkers=1
  • pnpm lint:ui:styles
  • Verify the base-aware control-ui-performance check passes without budget changes.
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c738ce2 adds ui/src/styles/new-session.css:1633 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c738ce212e9e; files: ui/src/styles/new-session.css)
  • Vyctor H. Brzezowski: Raw commit eb73bd2 adds ui/src/styles/new-session.css:1793 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eb73bd206ae5; files: ui/src/styles/new-session.css)

PR surface

Source +9. Total +9 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 9 0 +9
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 9 0 +9

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.

Review metrics

Metric Value Why it matters
Raw CSS budget delta +124 B; allowed +64 B Exact-head CI compares against an already-over-budget base and rejects 60 bytes beyond its allowance.

Labels

Label changes:

  • add P3: This is a small mobile layout repair; the reported defect does not prevent composer interaction.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a small mobile layout repair; the reported defect does not prevent composer interaction.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

Reviewed November 13, 2026, 9:59 PM ET / November 14, 2026, 02:59 UTC.

@steipete
steipete merged commit 0bf4c97 into main Nov 14, 2026
98 of 101 checks passed
@steipete
steipete deleted the fix/ci-435405-empty-model-spacing branch November 14, 2026 04:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…8593)

* fix(ui): keep empty model picker beside composer actions

* fix(ui): trim redundant model picker selector scope

* fix(ui): reuse model picker binding for empty state
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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