Skip to content

[Bug] Model selector UI incorrectly combines provider name with model ID #51510

@DearPeter

Description

@DearPeter

Bug Description

When trying to switch models in the OpenClaw Control UI, an error appears: "Invalid model: xxx is not a valid model".

The UI appears to be incorrectly combining provider names with model IDs. For example:

  • Expected model: custom-coding-dashscope-aliyuncs-com/qwen3-max-2026-01-23
  • UI tries to save as: minimax-portal/qwen3-max-2026-01-23 (wrong provider)

Steps to Reproduce

  1. Open OpenClaw Control UI
  2. Navigate to model settings
  3. Try to change the model selection
  4. Error appears immediately

Expected Behavior

The model selector should correctly save the full model ID with the correct provider prefix.

Environment

  • OpenClaw version: 2026.3.13
  • UI: openclaw-control-ui
  • Channel: webchat

Additional Context

The underlying config seems to be correct when checked via config.get, but the UI appears to have a bug in how it parses/validates model names before saving.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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