Repository navigation
feat(ui): show and edit each agent's utility model on the Agents page - #197894
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: ready, awaiting a maintainer decision. What this changesAdds per-agent utility-model editing on Agents Overview and linked override summaries on Models. Example: Forge uses anthropic/claude-sonnet-4-6 with utility fallbacks anthropic/claude-opus-4-8 and openai/gpt-5.4.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⏳ Ready, awaiting maintainer decision Keep this PR open for an owner decision on the focused UI feature; the implementation is coherent, and the earlier CSS finding is addressed. Priority: P2 Decision needed
Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI reads agent configuration and the model catalog, stages utility selections through the existing config editor, and displays the persisted settings without changing Gateway routing. flowchart LR
A[Gateway configuration] --> B[Existing config owner]
C[Agent model catalog] --> D[Agents Overview picker]
B --> D
D --> B
B --> E[Models override summary]
E --> D
Technical reviewBest possible solution: Approve the focused UI addition using the existing picker, config editor, and runtime inheritance contract. Do we have a high-confidence way to reproduce the issue? Current-main source lacks the utility control, and the inspected stable screenshot shows that omission; no target code was executed during this review. Is this the best way to solve the issue? The patch uses existing owners and preserves the documented config shapes; the added presentation and focused tests serve distinct editing, fallback-preservation, unavailable-selection, and navigation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8a328bf86189. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +185, Tests +107, Docs +2. Total +294 across 15 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 12, 2026, 7:36 PM ET / November 13, 2026, 00:36 UTC (Revision 2). |
Render each agent name as a real link styled by the global link rule and the shared session-link hover underline, instead of a button with its own reset rules. Total raw CSS grows 35 B.
|
Verified stable On stable, I stopped the stable Gateway, installed the head build produced by the repo’s self-contained packaging script, and ran the documented Doctor upgrade step: Changing Forge’s primary model to Models listed This run did not exercise model inference, provider credentials, the inherit/disable choices, or utility settings with fallback lists. The test Gateway had no provider credentials; model-catalog refresh warnings remain visible in the screenshots. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…openclaw#197894) * feat(ui): show and edit each agent's utility model on the Agents page Refs openclaw#197866 * fix(ui): keep the Models agent links within the CSS budget Render each agent name as a real link styled by the global link rule and the shared session-link hover underline, instead of a button with its own reset rules. Total raw CSS grows 35 B.




Closes #197866
What Problem This Solves
An agent can have its own utility model (
agents.entries.<id>.utilityModel), but the Control UI only shows it in Advanced raw config. Agents → Overview lists the primary model, fallbacks and decision model, but not the utility model. Models shows the shared utility default and says agent settings override it, without naming which agents do. A broken per-agent override stays invisible, and changing the shared default leaves those agents on their own setting with no hint.Solution
Agents → Overview gets a Utility model row between Fallbacks and Decision model. It uses the same model picker as the primary model and offers:
The agent's own
utilityModel.fallbacksare kept, in order, for every choice. Choosing inherit on an agent that has its own fallbacks saves{ fallbacks }, which inherits the shared primary and keeps the fallbacks. The row lists those fallbacks under its description. Editing them stays in raw config.Models → Utility model lists every agent that has its own utility settings, with its model (or "Disabled" or "default model") and its fallbacks. Each name opens that agent's Overview.
An agent that picks a model and has no fallbacks of its own saves a bare model string. As documented in models, an explicit per-agent primary without
fallbacksdoes not use the shared utility fallbacks. Raw config edits already behave this way.Impact
utilityModelstring or{ primary, fallbacks }shape through the existing agent config save.docs/web/control-ui/settings.mddescribes where to set it and what each choice saves.Evidence
{ primary: "anthropic/claude-sonnet-4-6", fallbacks: ["anthropic/claude-opus-4-8", "openai/gpt-5.4"] }. Pickinggpt-5-minion Agents → Overview saved{ primary: "openai/gpt-5-mini", fallbacks: ["anthropic/claude-opus-4-8", "openai/gpt-5.4"] }to the config file. After a page reload the picker and the fallback line showed the saved values, and the Forge link on Models opened/settings/agents/forge. The red "couldn't refresh some models" notice in the screenshot comes from the test Gateway having no provider keys.ui/src/pages/agents/model-config.test.ts(the fallback test fails without the fallback-keeping write),panels-overview.test.ts,model-providers/data.test.ts,view-defaults.test.ts,view.test.ts,model-providers-page.test.ts,model-providers-page.presentation.test.ts: 7 files, all passing.tsgo(UI project), oxlint on the changed files, stylelint,ui:i18n:baseline(no baseline change) andui:i18n:verifyall pass.