Skip to content

fix(ui): make model picker status and settings clearer - #136779

Merged
Patrick-Erichsen merged 4 commits into
mainfrom
codex/model-picker-provider-settings
Sep 3, 2026
Merged

Patrick-Erichsen merged 4 commits into
mainfrom
codex/model-picker-provider-settings

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the chat model picker showed noisy selection-target chrome, mixed ordinary model metadata with the actionable “Sign-in needed” state, and offered no provider-level route to configure the model allowlist.

Why This Change Was Made

The picker now gives authentication failures one warning-only presentation, removes the visible “Selection target” / “Global default” chrome, and reuses the existing Model Setup flow from a small far-right provider settings button. The settings button has no hover tooltip, retains an accessible label, and stays provider-generic. The model trigger retains the selection-scope description in its accessible name/title. No new config surface or provider-specific policy was added.

User Impact

Users can scan unavailable models without competing metadata and open model configuration directly from the relevant provider heading. Model Setup remains the canonical place to add or remove allowed models.

Evidence

  • Focused Control UI unit suite: 329 passed.
  • Focused mocked-Gateway browser suite: 22 passed across the affected catalog, picker-refresh, and composer-redesign flows.
  • Final targeted scope regression: 3 passed; full picker-refresh browser flow: 3 passed.
  • pnpm check:changed: passed.
  • Exact-head GitHub CI, including openclaw/ci-gate: passed.
  • Fresh branch autoreview through P1: clean.
  • LOC classification: production +236/-115 (net +121); tests +118/-48 (net +70).

The latest visual proof and settings-flow recording are in this PR comment.

Review Disposition

ClawSweeper requested an always-visible touch disclosure for session/agent/global selection scope. The maintainer explicitly chose removal of that chrome and accepted the touch-discoverability tradeoff for this change; the disposition is recorded in this PR comment.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 3, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 2:57 AM ET / 06:57 UTC.

ClawSweeper review

What this changes

The PR makes the web chat model picker show authentication-required models as warnings, moves selection-scope text into accessible trigger metadata, and adds a provider-heading button to open existing Model Setup.

Merge readiness

✅ Ready for maintainer review

Keep open for ordinary maintainer handling. Current main does not contain this UI refinement, the introduced picker path preserves model selection and setup navigation, and no concrete introduced defect was found; the earlier visible-scope concern is explicitly documented as an intentional member-owned product choice.

Priority: P2
Reviewed head: b4b64ff4f6680d763912d6c9a9f89a6bf69f9d91

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered Control UI refinement with no supported correctness or security blocker.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored PR links browser screenshots and a recording for the changed picker flow; source coverage exercises selection, reload, hover, and Model Setup navigation. The attachments could not be opened because github.com DNS was unavailable to the reviewer, but the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR links browser screenshots and a recording for the changed picker flow; source coverage exercises selection, reload, hover, and Model Setup navigation. The attachments could not be opened because github.com DNS was unavailable to the reviewer, but the external-contributor proof gate does not apply.
Evidence reviewed 7 items Introduced picker behavior: The introduced provider-heading action invokes the existing supplied setup callback, while each provider's model rows are grouped in its own listbox.
Caller and canonical destination: The chat pane supplies the navigation callback, and the route map resolves Model Setup to the existing settings destination.
Selection and accessibility coverage: Focused unit coverage checks warning-only auth rows, accessible scope descriptions, provider-button activation, listbox membership, filtering, and keyboard selection; the browser flow covers selection, reload, and setup navigation.
Findings None None.
Security None None.

How this fits together

The Control UI chat composer receives the Gateway model catalog and selection policy, renders a model picker, and sends a selected model or navigation action onward. This change affects how users understand unavailable models and reach the existing model-setup screen.

flowchart LR
  A[Gateway model catalog] --> B[Chat composer]
  C[Model selection policy] --> B
  B --> D[Model picker]
  D --> E[Model change request]
  D --> F[Model Setup screen]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +121, Tests +70. Total +191 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 7 236 115 +121
Tests 5 118 48 +70
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 354 163 +191

Review metrics

Metric Value Why it matters
Production versus test delta production +121 net; tests +70 net The production growth implements provider grouping, a setup entry point, and accessible warning/scope presentation rather than a new configuration or persistence surface.

Technical review

Best possible solution:

Land the shared picker refinement while retaining current main's later selectionKnown refresh behavior through the normal clean three-way merge.

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

Not applicable: this is an intended UI refinement, and focused browser and unit coverage exercise the affected model-selection and setup-navigation paths.

Is this the best way to solve the issue?

Yes. The change reuses the shared picker and existing Model Setup route instead of introducing provider-specific policy or configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c5f52cc51e3a.

Labels

Label changes:

  • add P2: This is a bounded web model-picker usability improvement with no demonstrated delivery, persistence, security, or availability regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR links browser screenshots and a recording for the changed picker flow; source coverage exercises selection, reload, hover, and Model Setup navigation. The attachments could not be opened because github.com DNS was unavailable to the reviewer, but the external-contributor proof gate does not apply.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded web model-picker usability improvement with no demonstrated delivery, persistence, security, or availability regression.
  • 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. Not applicable: This member-authored PR links browser screenshots and a recording for the changed picker flow; source coverage exercises selection, reload, hover, and Model Setup navigation. The attachments could not be opened because github.com DNS was unavailable to the reviewer, but the external-contributor proof gate does not apply.

Evidence

What I checked:

  • Introduced picker behavior: The introduced provider-heading action invokes the existing supplied setup callback, while each provider's model rows are grouped in its own listbox. (ui/src/pages/chat/components/chat-model-picker.ts:499, b4b64ff4f668)
  • Caller and canonical destination: The chat pane supplies the navigation callback, and the route map resolves Model Setup to the existing settings destination. (ui/src/pages/chat/chat-pane-render.ts:272, b4b64ff4f668)
  • Selection and accessibility coverage: Focused unit coverage checks warning-only auth rows, accessible scope descriptions, provider-button activation, listbox membership, filtering, and keyboard selection; the browser flow covers selection, reload, and setup navigation. (ui/src/pages/chat/chat-view.test.ts:6904, b4b64ff4f668)
  • Current-main comparison: Current main still derives and renders the visible session/agent/global selection-target footer and retains the prior mixed auth metadata, so it has not already implemented this PR's central behavior. (ui/src/pages/chat/components/chat-model-picker.ts:318, c5f52cc51e3a)
  • Main ancestry: The PR head is not an ancestor of fetched current main, while the PR base is; this is open work rather than an already-merged implementation. (c5f52cc51e3a)
  • Feature history: Recent history ties selection-scope disclosure to Jason (Json), with subsequent footer, auth, and refresh work by Peter Steinberger; historical line-level verification was unavailable because the partial clone could not fetch missing blobs while DNS was unavailable. (ui/src/pages/chat/components/chat-model-picker.ts:318, f478b4e8bafd)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • krzyszchweski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-03T01:02:37.340Z sha 6692a95 :: blocked before merge. :: none
  • reviewed 2026-09-03T04:58:22.096Z sha 2acdf64 :: blocked before merge. :: [P2] Enable touch disclosure for the selection-scope chip
  • reviewed 2026-09-03T05:51:51.935Z sha b4b64ff :: blocked before merge. :: [P1] Keep the model-selection scope visible on touch

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Updated visual proof after moving the provider settings action to the far-right edge. The browser regression now verifies the right inset directly.

05-picker-before-touch-selection

09-configure-models-tooltip

[email protected]

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 3, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Updated visual proof for the final picker cleanup:

  • removed the visible selection-scope row
  • removed the gear hover tooltip while retaining its accessible label
  • reduced the gear glyph to 12px while preserving the 22px button target and far-right alignment
  • retained Configure models navigation

The recording covers model selection, hover behavior, and the settings navigation flow.

05-picker-before-touch-selection

09-configure-models-no-tooltip

10-model-setup-navigation

[email protected]

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 3, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Sep 3, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

ClawSweeper rank-up/merge-risk disposition: intentionally skipping the request to restore an always-visible session/agent/global scope row. This PR implements explicit maintainer product direction to remove both the “Selection target” line and the “Global default” picker chrome. The scope description remains in the model trigger’s accessible name/title, but the visible touch disclosure tradeoff is deliberate and should be resolved as a maintainer product decision rather than by restoring the removed UI in this change.

@clawsweeper clawsweeper Bot removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit dd8720b into main Sep 3, 2026
176 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@Patrick-Erichsen
Patrick-Erichsen deleted the codex/model-picker-provider-settings branch September 3, 2026 07:12
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
* fix(ui): clarify model picker configuration

* fix(ui): align model provider settings action

* fix(ui): simplify model picker chrome

* fix(ui): follow shared cursor policy
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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