Skip to content

[Bug]: Model picker in Control UI mangles provider prefix when switching models #51306

@dmcarrington

Description

@dmcarrington

Bug type

Behavior bug (incorrect output/state without crash)

Summary

When using the model picker dropdown in the Control UI to switch to an Ollama model (e.g. ollama/gpt-oss:120b-cloud), the UI submits the model incorrectly, producing: model not allowed: anthropic/gpt-oss:120b-cloud.

The dropdown shows the full model ID with provider prefix correctly, but on submission the UI strips ollama/ and prepends anthropic/ as the default provider.

Steps to reproduce

  1. Open Control UI → model picker
  2. Select any Ollama model (e.g. ollama/gpt-oss:120b-cloud)
  3. Confirm → error: Failed to set model: model not allowed: anthropic/gpt-oss:120b-cloud

Expected behavior

Model is switch successfully to ollama/gpt-oss:120b-cloud

Actual behavior

error: Failed to set model: model not allowed: anthropic/gpt-oss:120b-cloud

OpenClaw version

2026.3.13

Operating system

PopOS 24.04

Install method

npm global

Model

gpt-oss:120b-cloud

Provider / routing chain

openclaw -> ollama

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

Severity: low
Workaround: Use /model in chat or openclaw models set via CLI.

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