Skip to content

fix(control-ui): preserve configured model metadata in picker - #61382

Merged
mukhtharcm merged 17 commits into
openclaw:mainfrom
Mule-ME:fix/control-ui-model-picker-metadata
Apr 9, 2026
Merged

mukhtharcm merged 17 commits into
openclaw:mainfrom
Mule-ME:fix/control-ui-model-picker-metadata

Conversation

@Mule-ME

@Mule-ME Mule-ME commented Apr 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Problem: the Control UI model picker lost configured model metadata and could restore nested model refs against the wrong provider after refresh.
  • Why it matters: users saw raw model-id · provider labels instead of configured aliases/names, and models like nvidia/moonshotai/kimi-k2.5 could jump to the wrong provider after refresh.
  • What changed: the gateway now preserves configured model alias/name metadata in the catalog, session and live-switch normalization preserve nested provider/model refs, and the Control UI picker now prefers alias || name || raw.
  • What did NOT change (scope boundary): this PR does not introduce a global label-normalization policy; mixed label styles still come from upstream/provider metadata and local config.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

Root Cause / Regression History (if applicable)

  • Root cause: configured model metadata was dropped while building the allowed-model catalog, alias was not exposed in the catalog contract, and session override normalization did not preserve nested provider/model refs consistently across refresh paths.
  • Missing detection / guardrail: there was no focused coverage for alias propagation, nested override normalization, stale-provider correction, or the /model caching path for nested ids.
  • Prior context (git blame, prior PR, issue, or refactor if known): reported in Bug: Control UI Model Display and Selection Issues #58835; an earlier UI-only attempt in fix(control-ui): use catalog names in model picker #59831 improved display but still pushed too much identity repair into the frontend.
  • Why this regressed now: this appears to be longstanding behavior from how model metadata and session overrides were merged rather than a recent single-point regression.
  • If unknown, what was ruled out: ruled out “UI-only” root cause; the missing alias/name data and nested-ref handling both required gateway-side fixes.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file:
    • src/agents/model-selection.test.ts
    • src/gateway/session-utils.test.ts
    • src/agents/live-model-switch.test.ts
    • src/gateway/server.models-voicewake-misc.test.ts
    • src/gateway/server.sessions.gateway-server-sessions-a.test.ts
    • ui/src/ui/chat-model-ref.test.ts
    • ui/src/ui/chat-model-select-state.test.ts
    • ui/src/ui/chat/slash-command-executor.node.test.ts
    • ui/src/ui/controllers/agents.test.ts
  • Scenario the test should lock in:
    • configured alias/name propagate into models.list
    • synthetic allowed-model entries preserve configured metadata
    • nested model refs remain provider-qualified across session/live-switch normalization
    • picker labels prefer alias || name || raw
    • /model caching preserves nested refs when catalog lookup is present or unavailable
  • Why this is the smallest reliable guardrail: the bug crosses gateway contract, session normalization, and picker rendering, so it needs both narrow unit coverage and gateway seam tests.
  • Existing test that already covers this (if any): none before this PR
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

  • The Control UI model picker now shows configured aliases and friendly names when available.
  • Nested refs like nvidia/moonshotai/kimi-k2.5 stay provider-qualified after refresh.
  • /model updates and tools-effective resolution now use the same normalized model identity.
  • The picker still reflects provider-specific naming differences from upstream/config metadata instead of rewriting them into a single global style.

Diagram (if applicable)

Before:
[config alias/name] -> [allowed-model catalog drops metadata] -> [UI falls back to raw "model-id · provider"]
[nested model ref + refresh] -> [stale/partial normalization] -> [wrong provider mapping]

After:
[config alias/name] -> [gateway catalog preserves metadata] -> [UI picker shows alias/name]
[nested model ref + refresh] -> [gateway/session normalization preserves provider-qualified ref] -> [stable picker/default state]

Security Impact (required)

  • New permissions/capabilities? (No)
  • Secrets/tokens handling changed? (No)
  • New/changed network calls? (No)
  • Command/tool execution surface changed? (No)
  • Data access scope changed? (No)
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: macOS
  • Runtime/container: local OpenClaw main, built-in Control UI
  • Model/provider: nvidia/moonshotai/kimi-k2.5 and other catalog-backed models
  • Integration/channel (if any): none
  • Relevant config (redacted): provider model entries with configured name plus agents.defaults.models aliases

Steps

  1. Start the gateway and open the built-in Control UI.
  2. Open the chat model picker and inspect the displayed labels.
  3. Select a nested model ref such as nvidia/moonshotai/kimi-k2.5.
  4. Refresh or reload the session state.

Expected

  • The picker shows configured alias/name instead of raw model-id · provider.
  • The selected nested ref stays on the same provider after refresh.

Actual

  • Before this change, aliases/names were ignored and the picker showed raw labels.
  • Before this change, nested refs could be cached/restored under the wrong provider.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Before: raw provider/model labels in the picker.
Screenshot 2026-04-05 at 19 31 43

After: friendly alias/name labels from the catalog.
Screenshot 2026-04-05 at 16 07 14

Human Verification (required)

  • Verified scenarios:
    • rebuilt the Control UI and confirmed the picker shows configured aliases/names
    • confirmed nested model refs stay provider-qualified after refresh
    • confirmed /model and tools-effective paths use the normalized ref
  • Edge cases checked:
    • stale provider on plain ids with a unique catalog match
    • nested slash-containing ids with and without catalog availability
    • duplicate friendly names across providers
  • What you did not verify:
    • a global label-normalization policy across all provider metadata styles
    • unrelated Control UI surfaces outside model selection / tools-effective model resolution

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? (Yes)
  • Config/env changes? (No)
  • Migration needed? (No)
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

  • Risk: provider catalogs/config can still contain visually inconsistent naming styles.
    • Mitigation: preserve configured/upstream metadata exactly; avoid introducing a subjective UI rewrite policy in this bug fix.
  • Risk: nested ref handling spans gateway and UI paths, so regressions could reappear in less common flows.
    • Mitigation: added coverage for gateway normalization, /model, tools-effective resolution, and picker rendering.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Apr 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f95733b447

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/chat-model-ref.ts Outdated
return resolveServerChatModelValue(trimmedModel, trimmedProvider);
}

return qualifiedServerValue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep fully qualified model refs when catalog lookup fails

When resolvePreferredServerChatModelValue receives a slash-containing model plus a provider but no catalog match (for example, models.list failed and returned []), it now falls through to qualifiedServerValue and prepends the provider again. In the stale-provider case this rewrites an already-qualified ref like openai/gpt-5-mini into zai/openai/gpt-5-mini, which changes model identity and can propagate into cached override/tools keys until a later refresh. The previous behavior preserved the already-qualified value in this fallback path.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving this open for now since the fallback is ambiguous without better catalog context.

@greptile-apps

greptile-apps Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes the Control UI model picker losing configured model metadata and nested model refs jumping to the wrong provider after refresh. The gateway now propagates configured alias/name into the allowed-model catalog via buildModelCatalogMetadata/applyModelCatalogMetadata, both session and live-switch normalization strip duplicated provider prefixes from stored overrides, and the UI picker prefers alias || name || raw via the new buildCatalogDisplayLookup display-label system. The key behavioral fix is in buildQualifiedChatModelValue: nested IDs like moonshotai/kimi-k2.5 now correctly receive the nvidia/ prefix instead of being returned as-is.

Confidence Score: 5/5

Safe to merge; all findings are P2 style/DRY nits with no functional impact.

No P0 or P1 issues found. The fix is well-scoped, well-reasoned, and backed by new unit and integration tests across gateway normalization, session utils, and UI picker layers.

No files require special attention; the two P2 observations in ui/src/ui/chat-model-select-state.ts and src/agents/live-model-switch.ts are non-blocking.

Prompt To Fix All With AI
This is a comment left during a code review.
Path: ui/src/ui/chat-model-select-state.ts
Line: 100-110

Comment:
**`buildCatalogDisplayLookup` called twice on the same catalog**

`buildCatalogDisplayLookup(catalog)` is computed here at line 100, and then again inside `buildChatModelOptions` at line 64 (called at line 110 with the same `catalog` reference). The O(n) pass is redundant. Pass the already-built `displayLookup` into `buildChatModelOptions` as a parameter to eliminate the duplicate work and make the data-flow explicit.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/agents/live-model-switch.ts
Line: 15-28

Comment:
**Duplicate provider-prefix normalization logic**

`normalizeStoredOverrideSelection` here and `normalizeStoredSessionOverride` in `src/gateway/session-utils.ts` (lines 1021–1041) implement near-identical prefix-stripping logic. If this normalization ever needs to change (e.g. to handle provider-ID casing edge cases), it will need updating in two places. Extracting a shared helper in a utility module would prevent future drift.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "test(control-ui): cover model picker res..." | Re-trigger Greptile

Comment thread ui/src/ui/chat-model-select-state.ts Resolved
Comment thread src/agents/live-model-switch.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65ccc81f98

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/agents/live-model-switch.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09632be7c8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/chat-model-ref.ts Outdated
return resolveServerChatModelValue(trimmedModel, trimmedProvider);
}

return qualifiedServerValue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve qualified model when catalog lookup is unavailable

When resolvePreferredServerChatModelValue gets an already-qualified model (contains /) and a stale provider, the empty-catalog fallback returns qualifiedServerValue from the stale provider. In the models.list failure path (loadModelCatalog(..., { allowFailure: true }) returns []), this rewrites values like openai/gpt-5-mini into zai/openai/gpt-5-mini, changing model identity and affecting cached override/effective-tools keys after /model. This fallback should keep the original qualified value unless catalog evidence says otherwise.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving this open for now since the fallback is ambiguous without better catalog context.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac42ad16d6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/chat-model-ref.ts Outdated
return resolveServerChatModelValue(trimmedModel, trimmedProvider);
}

return qualifiedServerValue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve qualified model refs when catalog fallback is empty

resolvePreferredServerChatModelValue can rewrite an already-qualified model to the wrong identity when catalog lookup fails. In the reachable allowFailure path (loadModelCatalog(..., { allowFailure: true }) in ui/src/ui/chat/slash-command-executor.ts), an input like openai/gpt-5-mini with a stale provider can fall through to qualifiedServerValue and return zai/openai/gpt-5-mini, which changes the selected model and downstream cache/tool-resolution keys even though no catalog evidence supports that rewrite.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving this open for now since the fallback is ambiguous without better catalog context.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 27243f6e6a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +137 to +139
const qualifiedServerValue = buildQualifiedChatModelValue(trimmedModel, trimmedProvider);
if (hasCatalogQualifiedValue(catalog, qualifiedServerValue)) {
return qualifiedServerValue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match slash model IDs against catalog before prefixing provider

For slash-containing server models, this branch prepends trimmedProvider before checking whether the catalog has a unique match by entry.id, so a stale provider can still overwrite model identity even when catalog evidence exists. Example: model="moonshotai/kimi-k2.5", provider="zai", and catalog entry { provider: "nvidia", id: "moonshotai/kimi-k2.5" } returns zai/moonshotai/kimi-k2.5 instead of the catalog-backed provider. Fresh evidence beyond prior comments: this mis-resolution happens even with a non-empty catalog, because the current lookup only compares fully-qualified keys.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 3b8db9b212 by matching slash-containing model ids against catalog entry.id before falling back to the server provider.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b8db9b212

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/chat-model-ref.ts Outdated
Comment on lines +160 to +162
}

return qualifiedServerValue;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve qualified refs on server-provider fallback

When model already includes a provider segment and catalog lookup cannot confirm a match, this fallback returns qualifiedServerValue, which is built by prepending the server-reported provider to trimmedModel. With stale provider metadata (for example model="openai/gpt-5-mini", provider="zai"), the function emits zai/openai/gpt-5-mini instead of preserving the original ref, so /model can cache and reuse a wrong model identity for tools-effective/session overrides until a later refresh. Fresh evidence beyond earlier thread context: this same rewrite happens not only on empty catalogs, but also when the catalog is non-empty yet missing the exact qualified key.

Useful? React with 👍 / 👎.

@mukhtharcm mukhtharcm self-assigned this Apr 8, 2026
@mukhtharcm
mukhtharcm force-pushed the fix/control-ui-model-picker-metadata branch from 3b8db9b to b1c0241 Compare April 8, 2026 16:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1c0241b3e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +233 to +236
!resolvedValue.toLowerCase().startsWith(`${resolvedProvider.toLowerCase()}/`) &&
requestedOverride.value.toLowerCase().endsWith(`/${resolvedModel.trim().toLowerCase()}`)
) {
resolvedValue = requestedOverride.value;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve catalog-corrected provider for qualified /model updates

This fallback rewrites resolvedValue back to the user-requested qualified string whenever the suffix matches resolvedModel, even when catalog resolution already found a different canonical provider. In practice, a qualified request like z-ai/deepseek-chat can end up caching z-ai/deepseek-chat instead of the catalog-backed deepseek/deepseek-chat, which makes the local sessionPatch.modelOverride diverge from gateway/model-catalog normalization and can skew subsequent UI model state and tools-effective keys until a full refresh.

Useful? React with 👍 / 👎.

@mukhtharcm
mukhtharcm force-pushed the fix/control-ui-model-picker-metadata branch 2 times, most recently from 7e474e2 to dd5f2ec Compare April 9, 2026 00:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd5f2ec245

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +188 to +190
modelOverride: modelOverride.toLowerCase().startsWith(providerPrefix)
? modelOverride.slice(providerOverride.length + 1).trim() || modelOverride
: modelOverride,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid stripping real nested model prefixes from overrides

normalizeStoredOverrideModel removes any leading providerOverride + "/" from modelOverride, which breaks valid nested IDs that intentionally start with that segment (for example, provider nvidia with model ID nvidia/nemotron-...). After this commit, both resolveSessionModelRef and live-switch resolution pass through this helper, so persisted overrides for those models are rewritten to a different model key on read, leading to wrong model selection after refresh/restart.

Useful? React with 👍 / 👎.

@mukhtharcm
mukhtharcm force-pushed the fix/control-ui-model-picker-metadata branch from dd5f2ec to ba5b5e0 Compare April 9, 2026 09:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba5b5e08e4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +188 to +189
modelOverride: modelOverride.toLowerCase().startsWith(providerPrefix)
? modelOverride.slice(providerOverride.length + 1).trim() || modelOverride

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve provider-prefixed nested override IDs

Do not strip providerOverride + "/" unconditionally here: it rewrites valid model IDs that intentionally begin with that segment (for example providerOverride="nvidia" with modelOverride="nvidia/nemotron-..."). After this normalization, both resolveSessionModelRef and live-switch resolution interpret the override as a different model (nemotron-...), so persisted sessions can silently select the wrong model after reload/restart.

Useful? React with 👍 / 👎.

Comment on lines +233 to +236
!resolvedValue.toLowerCase().startsWith(`${resolvedProvider.toLowerCase()}/`) &&
requestedOverride.value.toLowerCase().endsWith(`/${resolvedModel.trim().toLowerCase()}`)
) {
resolvedValue = requestedOverride.value;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep catalog-canonical provider in /model cache patch

Avoid overriding the normalized resolvedValue with requestedOverride.value in this fallback. When sessions.patch reports a stale/non-canonical provider but catalog resolution found the canonical qualified model, this branch writes the stale requested provider back into sessionPatch.modelOverride (for example z-ai/deepseek-chat instead of deepseek/deepseek-chat), causing local picker state and tools-effective cache keys to diverge from catalog-backed model identity until a later refresh.

Useful? React with 👍 / 👎.

@mukhtharcm

Copy link
Copy Markdown
Member

Merged via squash.

Thanks @Mule-ME!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c738f6f146

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


return {
...params.entry,
name: configuredEntry?.name ?? params.entry.name,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid clobbering discovered names with implicit config defaults

applyModelCatalogMetadata always sets name from configuredEntry when one exists, but buildConfiguredModelCatalog gives every configured model a fallback name equal to its id when no explicit name was configured. That means id-only provider configs now overwrite discovered friendly names (for example, replacing GPT-4o with gpt-4o) even though the user did not specify a custom name, regressing picker labels and model metadata quality for common configurations.

Useful? React with 👍 / 👎.

steipete pushed a commit that referenced this pull request Apr 10, 2026
Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…aw#61382)

Merged via squash.

Prepared head SHA: c738f6f
Co-authored-by: Mule-ME <[email protected]>
Co-authored-by: mukhtharcm <[email protected]>
Reviewed-by: @mukhtharcm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Control UI Model Display and Selection Issues

3 participants