Skip to content

fix(ui): keep provider-qualified model picker refs intact#1189

Open
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-51737-codex-control-ui-model-picker-provider-refs
Open

fix(ui): keep provider-qualified model picker refs intact#1189
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-51737-codex-control-ui-model-picker-provider-refs

Conversation

@BingqingLyu
Copy link
Copy Markdown
Owner

@BingqingLyu BingqingLyu commented Apr 27, 2026

Summary

  • reuse the configured model collector in the agents overview picker so provider-qualified primary, fallback, and allowlisted model refs stay selectable
  • add a regression test that keeps the chat header picker sending the full provider-qualified model when switching across providers
  • add coverage for the overview picker so it shows configured provider-qualified values instead of falling back to a synthetic Current (...) entry

Testing

  • corepack pnpm --dir ui exec vitest run src/ui/views/chat.test.ts src/ui/views/agents.test.ts src/ui/views/agents-utils.test.ts --config vitest.config.ts
  • corepack pnpm --dir ui exec vitest run src/ui/chat-model-ref.test.ts src/ui/chat/slash-command-executor.node.test.ts --config vitest.config.ts

Closes openclaw#51608
Closes openclaw#51510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Control UI Model Picker Sends Wrong Provider Prefix for All Models [Bug] Model selector UI incorrectly combines provider name with model ID

2 participants