Repository navigation
feat(ui): show agent runtime distinction in model picker rows - #120617
Conversation
|
Codex review: found issues before merge. Reviewed August 8, 2026, 11:40 AM ET / 15:40 UTC. ClawSweeper reviewWhat this changesThe PR forwards each model’s existing agent-runtime ID into the Control UI picker and appends a human-readable runtime label to the row metadata. Merge readinessKeep open: the picker’s new runtime-label map omits known current runtime IDs, so Claude and Gemini CLI rows would display malformed labels. This maintainer-owned PR needs that narrow UI repair before merge. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway returns each configured model’s resolved agent-runtime metadata to the Control UI. Chat model controls match a selected model to that catalog entry, and the picker renders its metadata for the operator before selection. flowchart LR
A[Configured model runtimes] --> B[Gateway model catalog]
B --> C[Control UI catalog state]
C --> D[Chat model controls]
D --> E[Picker row metadata]
E --> F[Operator model selection]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +34. Total +47 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Extend the picker-local known-runtime label map for claude-cli and google-gemini-cli, retain the generic fallback for unknown plugin runtimes, and add focused row assertions. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the Gateway’s current test emits claude-cli and the new picker fallback deterministically turns it into “Claude-cli.”. Is this the best way to solve the issue? No. Rendering the recorded runtime fact at the picker is the right boundary, but the local label map must cover the known current CLI runtime IDs before it is the best solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7ecdef6e2ed4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…aw#120617) * feat(ui): show agent runtime distinction in model picker rows * fix(ui): label known CLI runtime ids in model picker rows

What Problem This Solves
An operator can configure the same logical model under two different agent runtimes — e.g.
openai/gpt-5.6pinned to the OpenClaw runtime andopenai/gpt-5.6-solpinned to the native Codex runtime. The model picker then shows two visually identical rows ("GPT-5.6 1M" / "GPT-5.6 Sol 1M") with nothing explaining why both exist, which reads as a configuration bug even when the setup is intentional.Why This Change Was Made
The gateway already records the fact:
models.listreturnsagentRuntime: {id, source}per entry (src/gateway/server-methods/models-list-result.ts), and the UI catalog type declares the field — the picker just dropped it. Per the "record facts where they happen; read them where they are needed" doctrine, the fix is to render the existing fact, not to infer anything client-side: rows whose catalog entry carries an explicit runtime now append it to the meta line ("1M · OpenClaw" / "1M · Codex"), after the existing context/chat-only meta so no current strings shift. Runtime ids map through a tiny label table (codex → Codex, openclaw → OpenClaw) with a capitalize fallback; entries without an explicit runtime (autoresolution) show nothing, unchanged.The e2e mock-gateway helper's inline
modelstype was replaced with the realModelCatalogEntrytype so fixtures can carryagentRuntime(net −8 lines).User Impact
Duplicate-looking rows from multi-runtime configurations are now self-explanatory in the picker. No behavior changes — selection, search, shortcuts, and all existing meta stay as they are.
Evidence
Screenshot in first comment: the two rows rendering "1M · OpenClaw" vs "1M · Codex" via the mock-gateway harness.
chat-view.test.ts— 230 passed, incl. new regression asserting per-row runtime metachat-only-model.e2e.test.ts— passes (meta join order preserved; runtime appends last)gpt-5.6-sol, high): clean, no actionable findings