Repository navigation
fix: preserve case-sensitive fallback model references - #141997
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: needs maintainer review before merge. Reviewed September 8, 2026, 4:24 AM ET / 08:24 UTC. ClawSweeper reviewWhat this changesThe Control UI preserves case-sensitive fallback model references and catalog labels while using configured aliases to exclude the effective primary model. Merge readiness✅ Ready for maintainer review This remains a useful repair: current main still conflates case-distinct fallback references, and the related PRs address separate defects. No blocking correctness or security finding remains. Priority: P2 Review scores
Verification
How this fits togetherThe agent model picker combines the Gateway catalog with editable agent configuration. Selected fallback references pass through the existing configuration writer and determine the agent’s ordered fallback chain. flowchart LR
A[Gateway model catalog] --> C[Model choices and labels]
B[Agent configuration draft] --> C
B --> D[Primary alias exclusion]
C --> E[Fallback picker]
D --> E
F[Typed model references] --> E
E --> G[Ordered configuration update]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +109, Tests +396. Total +505 across 8 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep model identity aligned with the existing configuration normalizer while preserving authored fallback values and case-insensitive search. Do we have a high-confidence way to reproduce the issue? Yes, from source: a lowercase catalog entry causes current main to match or exclude a differently cased custom reference. The supplied before/after screenshots corroborate this; no local execution was performed. Is this the best way to solve the issue? Yes. Caller-owned identity reuses the existing configuration normalizer, preserves typed values, and keeps model-specific exclusion outside the generic component. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 299ea7c393b8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Fixed: fallback model selection preserves exact references and correctly excludes configured primary aliases. |
Preserve case-sensitive fallback model references and authored aliases, and exclude configured primary aliases using current form values. Refs openclaw#141330.
Related: #141330, #141953, #141967
What Problem This Solves
Fixes an issue where users entering a case-sensitive fallback model reference could have it rewritten or hidden when the catalog contained a differently cased ID. The field could also offer the primary model again when it was selected through a configured alias.
Why This Change Was Made
Search matching is separated from model identity. Catalog values and labels preserve model suffix case, typed references stay as authored, and primary exclusion uses the current form’s configured aliases with the distinct primary and fallback resolution rules.
User Impact
References such as
custom/Model-Aandcustom/model-aremain separate choices. Users can keep custom references and aliases without an automatic rewrite, while configured primary aliases exclude the matching fallback target.Evidence
3fc9dd3f1e1a3cb04958f19cf7f3a11adcd9169fwith the maintained stateful mock Gateway: all 12 browser cases pass config/raw readback. These cover exact custom case through Add/Enter/comma, distinct catalog labels, primary aliases and per-agent overrides, explicit clipboard confirmation, retained alias bindings, and bare/profile-qualified alternatives.Visual evidence
Exact-head fallback interaction recording
proof.webm
Visual verification
3fc9dd3f1e1a3cb04958f19cf7f3a11adcd9169f