Repository navigation
feat(ui): align per-agent model settings with global Models - #204772
Conversation
Add a Subagent model row to Models > More settings (agents.defaults.subagents.model) and to each agent's Overview (agents.entries.<id>.subagents.model). Both rows keep configured fallbacks and sibling subagent settings, and clearing returns to the inherited model. Move UtilityOverrides into a sibling module so default-models-view.tsx stays within its line cap.
OpenClaw-Publication: c7f45e21-394b-8b3c-b795-5a46cbbee80c
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR shares the global and per-agent model form, exposes existing subagent settings, and adds per-agent speed and utility-fallback controls. Example: Set main's subagent model to fixture/runner while retaining the shared fallback fixture/backup.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides useful model-setting controls that current main lacks, with no blocking correctness or security findings. Exact-head CI is still running. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects Gateway model catalogs and saved configuration into settings controls, then sends edits through the existing global mutation and per-agent config owners. flowchart TD
A[Gateway catalog and configuration] --> B[Global Models panel]
A --> C[Agent Overview panel]
B --> D[Shared model settings rows]
C --> D
D --> E[Existing configuration mutation owners]
E --> F[Gateway configuration persistence]
Technical reviewBest possible solution: Retain the shared presentation component and existing configuration owners while preserving explicit overrides, inheritance, and complete fallback chains. Do we have a high-confidence way to reproduce the issue? This is a feature request implemented by the PR; main's curated panels omit subagent-model editing and per-agent speed controls. Is this the best way to solve the issue? The shared form removes duplicate rendering while retaining the existing write owners and runtime contracts, making it a coherent implementation of the stated scope. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 304ea4c19eb8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +221, Tests +367, Docs +6. Total +594 across 37 files. Added test files: 1. 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 (2 earlier review cycles)
Reviewed November 24, 2026, 9:06 PM ET / November 25, 2026, 02:06 UTC (Revision 3). |
Changing the default subagent model no longer drops a saved fallback that matches the new choice, so the array is never rewritten and needs no replace path. The help text, unset label and settings docs now say that the setting applies to children that run as the agent, and that an unset default follows the parent session for same-agent children and the target agent's model otherwise.
OpenClaw-Publication: e7c9eb55-8d4f-856e-a02e-4d5aa0f1a73a
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Real-Gateway execution artifact for the reviewed tree ( |
|
Revised model panels, local candidate
An isolated real Gateway (no provider call) separately passed the browser save, reload and clear test with the shared controls. These are the recorded disk reads: |
OpenClaw-Publication: a61469c5-de93-8bee-8af1-9abf5a89db7d
OpenClaw-Publication: 1b10e7bc-407b-8d6a-8db5-7652789e29ab
|
Paired CI repair measurements for
The full local |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|









What problem this solves
Operators could configure a model for subagents and agent-started sessions, but neither settings panel exposed it. The individual agent also had a different model form: it lacked Speed and used different controls and grouping for other settings.
User impact
Settings → Models and Settings → Agents → Overview → Model selection now use one component: Model, Effort, Speed, then More settings for the fallback model, subagent model, utility model, utility fallback, and decision model. Changes on Models set shared defaults. Changes on Agent Overview affect only the selected agent, including when that agent is the default agent.
Evidence
Global and per-agent, on the same build (product revision
520978ebadb; expanded, real Control UI with mocked Gateway data):Clean before and after
Annotated before and after
Global baseline: main
59509844835. Per-agent comparison baseline: the earlier PR headc1d0ee1ac6b3, which had the subagent row but not the shared layout. Screenshots were captured at 1280×1000 with the same synthetic config.Verification
maxConcurrent. Clearing the per-agent override removed the empty block. Raw disk readbacks and screenshot artifacts. No model-provider request or production config change was involved.