Skip to content

fix(ui): label only operator-pinned runtimes in model picker rows - #120646

Merged
steipete merged 1 commit into
mainfrom
steipete/runtime-label-explicit-only
Aug 8, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/runtime-label-explicit-only

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

#120617 rendered the resolved agent runtime on every model row that carries one. But the gateway resolves a runtime for many rows implicitly (harness policy defaults, OpenAI implicit routing), so ordinary rows could pick up repetitive "· OpenClaw" meta that conveys no operator decision.

Why This Change Was Made

Maintainer decision after landing #120617: the label should mark operator intent, not resolution mechanics. The runtime meta now renders only when agentRuntime.source is model or provider — i.e. an operator pinned that runtime in config. Implicit/default/env/session resolutions stay unlabeled, so a dual-runtime setup like gpt-5.6 (OpenClaw) vs gpt-5.6-sol (Codex) stays distinguished while the rest of the list stays clean.

User Impact

Runtime labels appear exactly where a configuration choice created lookalike rows, and nowhere else. No other picker behavior changes.

Evidence

  • chat-view.test.ts — 230 passed; regression extended with an implicit-source row asserting bare "1M" meta
  • Autoreview (Codex gpt-5.6-sol, high): clean
  • LOC: production +5, tests +12

@steipete
steipete marked this pull request as ready for review August 8, 2026 16:58
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 8, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 1:45 PM ET / 17:45 UTC.

ClawSweeper review

What this changes

The PR renders model-picker runtime metadata only when the gateway says the runtime came from explicit model or provider configuration, with regression coverage for an implicit runtime row.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: this is a correct, narrow follow-up to the newly merged runtime-label feature, and current main still labels implicitly resolved rows. The protected maintainer label and member-authored status require explicit maintainer handling. Likely related people: steipete — feature author and recent area contributor (high confidence).

Priority: P3
Reviewed head: df84c4bfb1c10682c482e15000e1ed6058a22987
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-contract-aligned patch with targeted regression coverage and no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies this as member-authored; the focused DOM regression and successful UI checks are supplemental evidence rather than an external-contributor proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies this as member-authored; the focused DOM regression and successful UI checks are supplemental evidence rather than an external-contributor proof gate.
Evidence reviewed 6 items Current-main behavior: Current main unconditionally derives a runtime label from every catalog entry with an agent runtime, including implicitly resolved rows.
Models-list source contract: The models-list policy produces only model, provider, or implicit sources; model/provider represent configured policies and implicit is the fallback.
Explicit-policy ownership: The runtime resolver assigns model for configured model policies and provider for configured provider runtime settings, confirming the UI predicate matches operator-pinned sources.
Findings None None.
Security None None.

How this fits together

The gateway produces a model catalog with each model’s resolved runtime source. Control UI consumes that catalog to render model-picker metadata, while model selection itself remains unchanged.

flowchart LR
A[Configured runtime policy] --> C[Gateway model catalog]
B[Implicit runtime resolution] --> C
C --> D[Chat model controls]
D --> E{Operator-pinned source?}
E -->|model or provider| F[Runtime label in picker]
E -->|implicit| G[Context metadata only]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned follow-up land as the correction to the just-merged model-runtime label behavior? Land after exact-head verification: Accept the focused UI projection fix once the current-head review and merge checks are satisfied.

Why: The patch is technically sound, but the member-authored and protected maintainer status requires an explicit maintainer decision rather than automated cleanup.

Before merge

  • Complete next step (P2) - The protected maintainer status requires human merge handling; the review found no mechanical repair to queue.
Agent review details

Security

None.

PR surface

Source +6, Tests +10. Total +16 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 7 1 +6
Tests 1 10 0 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 17 1 +16

Review metrics

Metric Value Why it matters
Production vs test LOC production +7/-1 (net +6); tests +10/-0 The small production increase is the explicit source-gating boundary, and the added test locks the implicit-row behavior.

Root-cause cluster

Relationship: canonical
Canonical: #120646
Summary: This PR is the sole open corrective item for the runtime-label behavior introduced by the merged predecessor.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Land the controls-layer source filter after the maintainer’s normal exact-head review gate; retain resolved runtime metadata in the gateway catalog for other consumers.

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

Yes—source inspection gives a high-confidence path: current main forwards the runtime ID for implicit catalog rows, while the policy contract identifies those rows as non-operator-pinned.

Is this the best way to solve the issue?

Yes—the controls projection is the best fix because it changes only displayed metadata and preserves the gateway’s resolved-runtime fact for other consumers.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a small model-picker metadata correction with no change to selection, configuration, or runtime execution.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: Repository state identifies this as member-authored; the focused DOM regression and successful UI checks are supplemental evidence rather than an external-contributor proof gate.

Label justifications:

  • P3: This is a small model-picker metadata correction with no change to selection, configuration, or runtime execution.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state identifies this as member-authored; the focused DOM regression and successful UI checks are supplemental evidence rather than an external-contributor proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged runtime-label feature that last touched the picker controls and the follow-up correction. (role: feature author and recent area contributor; confidence: high; commits: 74b1627f888c, df84c4bfb1c1; files: ui/src/pages/chat/components/chat-model-controls.ts, ui/src/pages/chat/chat-view.test.ts, ui/src/pages/chat/components/chat-model-picker.ts)

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.

@steipete
steipete merged commit a70deaf into main Aug 8, 2026
141 of 145 checks passed
@steipete
steipete deleted the steipete/runtime-label-explicit-only branch August 8, 2026 17:57
vincentkoc added a commit to IsaiahStapleton/openclaw that referenced this pull request Aug 8, 2026
…0807

* origin/main:
  fix(qa): honor Crabbox SSH fallback ports (openclaw#120539)
  refactor(core): adopt normalization-core leaf helpers across production (openclaw#120350)
  fix(release): scope upgrade plugin credentials (openclaw#120666)
  fix(ai): preserve long Responses sessions after server compaction (openclaw#120457)
  fix(test): keep fork E2E setup builds observable (openclaw#120653)
  fix(cloud-workers): retain provider operation ownership (openclaw#120661)
  docs: runners plan — one placement model for sessions, devices, and cloud (openclaw#120657)
  refactor(cli): inline state migration policy (openclaw#120641)
  feat(update): scheduled update campaigns with countdown, dev-channel auto-update, and Updates settings page (openclaw#120506)
  chore(i18n): refresh native locales (openclaw#120614)
  fix(ci): retry transient artifact API reads (openclaw#120654)
  fix(clawrouter): honor advertised reasoning efforts (openclaw#120631)
  fix(infra): unify env-truthiness, missing-path, realpath, and abort-sleep semantics (openclaw#120359)
  fix(maintainers): parse merge comment URL structurally (openclaw#120649)
  fix(ui): label only operator-pinned runtimes in model picker rows (openclaw#120646)
  docs(agents): replace exact-head re-review gate with 12-hour review window

# Conflicts:
#	src/agents/payload-redaction.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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