Skip to content

improve(ui): read the model defaults as one row list - #191380

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/improve-models-defaults-rows
Nov 3, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/improve-models-defaults-rows

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

Defaults for all agents already use setting rows, but they don't read as a short list. Pickers are 48px beside 36px segmented controls, the order mixes the main model's settings with utility and decision settings, the card ends in about 58px of blank space reserved for a discovery message, and labels mix Title Case with sentence case.

User Impact

The main model's settings come first: Model, Fallback model, Thinking, Fast mode. Utility model, Utility fallback model and Decision model follow. Every control is the standard settings height and 340px wide, and the card ends at its last row. Discovering more models now reports on the section's heading line, so nothing moves when it comes and goes. A discovery failure takes its own line because it has to be read and retried.

Why This Change Was Made

The original finding, a label and select grid instead of row anatomy, no longer holds on main, so this changes what was still off: control size, order, the reserved hole, casing and a subtitle that repeated the section title. Decision model and Fast mode change in the shared strings, so other surfaces that use them get sentence case as well.

Evidence

Mock data layer with real components. Provider rows below the defaults are unchanged here.

Before, light After, light
After, dark at 390px Discovering, light at 390px

Checks: oxfmt, oxlint, stylelint, tsgo:ui, ui:check-performance:base, Models page unit tests, the select picker browser test, and the model-providers-layout (including the no-move assertion during discovery), settings-layout, curated-settings-defaults, model-defaults-capabilities, model-defaults-recovery and model-providers-help e2e suites pass. ui:i18n:check reports drift for the changed English strings, which the locale refresh workflow translates after merge.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 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-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR groups related model defaults, standardizes control sizing and label casing, and moves discovery feedback into the section header.

Example: Open Settings → Models on a desktop.

  • Before: The fallback and behavior settings follow utility settings, and discovery reserves empty space below the controls.
  • After: Model, Fallback model, Thinking, and Fast mode appear together, with discovery feedback beside the heading.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused presentation work with inspected visual evidence, but a localized header-overlap regression needs repair.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected screenshots show the changed English desktop and phone layouts using real components with mock data.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Model defaults have inconsistent control sizes, interleaved settings, and unnecessary blank space.
Reason: The maintainer-authored direction improves scanning while retaining existing configuration behavior and shared components.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored UI improvement is useful, but the discovery indicator introduces overlapping text on localized phone layouts.

Priority: P3
Reviewed head: 8b006f95f4ba8c2b171b015dfc0da33a9d3e3079

Before merge

  • Reserve heading space before positioning discovery feedback (P2) - At a 390px viewport with French selected, start model discovery: the heading “Paramètres par défaut pour tous les agents” and status “Recherche de modèles supplémentaires…” occupy the same top line. These rules remove the status from layout without reducing or reserving space in .settings-section__copy, so the two texts paint over each other. The alert-only fallback does not apply to normal discovery. Give the heading and status nonoverlapping layout space, including for longer translations, and extend the existing browser layout test to check their bounds.

Findings

  • [P2] Reserve heading space before positioning discovery feedback — ui/src/styles/model-providers.css:10-13

Tests

  • Missing end-to-end proof: Supplied evidence does not include localized header-intersection coverage or the real-Gateway layout-shift measurements required by the UI guide.
Agent review details

How this fits together

The Control UI renders Gateway-provided model catalogs and saved defaults through existing settings components; selection callbacks continue to use the existing configuration mutation owner.

flowchart TD
  A[Gateway catalog and configuration] --> B[Models page]
  B --> C[DefaultModels view]
  C --> D[Shared settings controls]
  C --> E[Discovery header feedback]
  D --> F[Existing configuration mutations]
  F --> A
Loading

Technical review

Best possible solution:

Keep the existing owners and compact controls, but reserve nonoverlapping header space for localized discovery feedback.

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

The CSS and shipped French strings establish the overlap path at a 390px viewport during discovery; this review did not execute a browser reproduction.

Is this the best way to solve the issue?

Reordering existing rows and removing local sizing overrides is appropriately small, but absolute positioning needs a layout that accounts for the heading's actual width.

Full review comments:

  • [P2] Reserve heading space before positioning discovery feedback — ui/src/styles/model-providers.css:10-13
    At a 390px viewport with French selected, start model discovery: the heading “Paramètres par défaut pour tous les agents” and status “Recherche de modèles supplémentaires…” occupy the same top line. These rules remove the status from layout without reducing or reserving space in .settings-section__copy, so the two texts paint over each other. The alert-only fallback does not apply to normal discovery. Give the heading and status nonoverlapping layout space, including for longer translations, and extend the existing browser layout test to check their bounds.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 99e521412641.

Provenance checked

  • Reserved discovery feedback space changes intended behavior with a stated reason (5e97b15: Prevent Models page height changes as asynchronous status appears and disappears.)
  • Model control width and height changes intended behavior with a stated reason (b6f5a4b: Align model controls and preserve responsive stacking and readable model choices.)
  • Defaults grouping and selection semantics keeps the original intent (d1c9e48: Consolidate global defaults into one autosaving card while preserving ordered fallback tails.)
  • Global scope explanation keeps the original intent (396bbac: Distinguish global defaults from agent-specific overrides and direct users to Agents → Overview.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/model-providers-layout.e2e.test.ts
  • pnpm lint:ui:styles
  • Verify French at 390px has no heading/status intersection while discovery starts and finishes.
  • Verify discovery errors and Retry remain visible and usable.

What I checked:

PR surface

Source +13, Tests 0. Total +13 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 61 48 +13
Tests 7 27 27 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 88 75 +13

Labels

Label changes:

  • add P3: This is settings presentation polish with a localized text-overlap defect; model selection and saving remain unchanged.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 settings presentation polish with a localized text-overlap defect; model selection and saving remain unchanged.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 2, 2026, 1:40 PM ET / 18:40 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit fd35382 into main Nov 3, 2026
22 of 23 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/improve-models-defaults-rows branch November 3, 2026 18:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
improve(ui): read the model defaults as one row list
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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