Skip to content

[Bug]: Control UI: Model selection uses wrong provider prefix when switching models #51139

@SquareXRay

Description

@SquareXRay

Bug type

Behavior bug (incorrect output/state without crash)

Summary

When selecting a model from the dropdown in the Control UI, the model name is incorrectly prefixed with the primary model's provider instead of its actual provider.

Steps to reproduce

  1. Set primary model to moonshot/kimi-k2.5
  2. Try to switch to MiniMax model via dropdown
  3. Error: model not allowed: minimax/kimi-k2.5 (wrong provider prefix)
    Or:
  4. Set primary model to minimax/MiniMax-M2.5
  5. Try to switch to Kimi model via dropdown
  6. Error: model not allowed: minimax/kimi-k2.5 (MiniMax prefix applied to Kimi)

Expected behavior

Dropdown should use correct provider prefix:

  • moonshot/kimi-k2.5 for Kimi
  • minimax/MiniMax-M2.5 for MiniMax

Actual behavior

Error: model not allowed: minimax/kimi-k2.5 (MiniMax prefix applied to Kimi)

OpenClaw version

2026.3.13

Operating system

Raspberry OS 5

Install method

npm

Model

minimax/kimi

Provider / routing chain

Direct connection to providers: - MiniMax: https://api.minimaxi.com/anthropic (Anthropic-compatible API) - Moonshot: https://api.moonshot.cn/v1 (OpenAI-compatible API) No gateways, proxies, or routers in between.

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions