openclaw - ✅(Solved) Fix [Bug] Model switch displays wrong prefix: moonshot/qwen3.5-plus [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#50939Fetched 2026-04-08 01:06:26
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Participants
Timeline (top)
commented ×1cross-referenced ×1renamed ×1

Error Message

When switching models in the chat window and selecting dashscope/qwen3.5-plus, an error occurs: The error shows moonshot/qwen3.5-plus, but the correct configuration in openclaw.json is dashscope/qwen3.5-plus. 4. Error: moonshot/qwen3.5-plus

Fix Action

Temporary Workaround

Use CLI to switch model:

openclaw config set agents.defaults.model.primary dashscope/qwen3.5-plus

PR fix notes

PR #50993: fix(ui): preserve model provider switches in chat picker

Description (problem / solution / changelog)

Fixes #50939. Related #50197.

Preserves the correct provider/model selection in the Control UI chat model picker when the server session row temporarily carries a stale modelProvider alongside an already-qualified model value.

Uses the current model catalog to disambiguate whether a slash in session.model is an embedded provider prefix or part of the model id, so provider switches like dashscope/qwen3.5-plus render correctly without regressing providers such as openrouter/moonshotai/Kimi-K2.5.

Includes chat view regression coverage for both the stale-provider switch case and the slashful model-id case.

Changed files

  • ui/src/ui/app-render.helpers.ts (modified, +10/-2)
  • ui/src/ui/chat-model-ref.ts (modified, +43/-1)
  • ui/src/ui/views/chat.test.ts (modified, +67/-0)
RAW_BUFFERClick to expand / collapse

Bug Description

When switching models in the chat window and selecting dashscope/qwen3.5-plus, an error occurs:

Failed to set model: GatewayRequestError: model not allowed: moonshot/qwen3.5-plus

The error shows moonshot/qwen3.5-plus, but the correct configuration in openclaw.json is dashscope/qwen3.5-plus.

Environment

  • OpenClaw Version: 2026.3.13 (61d171a) - OS: Windows

Steps to Reproduce

  1. Open chat window
  2. Click model selector
  3. Try to switch to dashscope/qwen3.5-plus
  4. Error: moonshot/qwen3.5-plus

Expected Behavior

Should correctly switch to dashscope/qwen3.5-plus instead of showing the wrong prefix combination.

Temporary Workaround

Use CLI to switch model:

openclaw config set agents.defaults.model.primary dashscope/qwen3.5-plus

extent analysis

Fix Plan

The fix involves updating the model configuration to correctly reference the dashscope/qwen3.5-plus model.

Steps to Fix

  • Update the openclaw.json file to ensure the model is correctly configured:
{
  "agents": {
    "defaults": {
      "model": {
        "primary": "dashscope/qwen3.5-plus"
      }
    }
  }
}
  • Alternatively, use the CLI command to update the configuration:
openclaw config set agents.defaults.model.primary dashscope/qwen3.5-plus
  • Verify that the model selector in the chat window correctly switches to dashscope/qwen3.5-plus without showing the wrong prefix combination.

Verification

To verify the fix, follow these steps:

  1. Open the chat window
  2. Click the model selector
  3. Switch to dashscope/qwen3.5-plus
  4. Confirm that the model is correctly switched without showing the moonshot/qwen3.5-plus error

Extra Tips

  • Ensure that the openclaw.json file is correctly formatted and saved.
  • If issues persist, try restarting the OpenClaw application or checking for any conflicting configurations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug] Model switch displays wrong prefix: moonshot/qwen3.5-plus [1 pull requests, 1 comments, 2 participants]