openclaw - 💡(How to fix) Fix `/new` does not clear persisted model override in channel-bound sessions

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…

Root Cause

Feishu DM sessions use a fixed session key (agent:main:feishu:direct:ou_xxx). /new resets the transcript but does not clear the persisted model override from the previous conversation.

Fix Action

Workaround

Currently requires explicit: /new bailian/qwen3.6-plus every time, or /model bailian/qwen3.6-plus after /new.

Code Example

{
  "sessions": {
    "resetModelOnNew": true
  }
}
RAW_BUFFERClick to expand / collapse

Problem

When using a channel-bound session (e.g., Feishu DM), calling /model <provider/model> persists a model override for that session. After calling /new, the conversation history is reset, but the model override remains active.

This means the new session continues using the old model instead of the configured agents.defaults.model.primary.

Reproduction Steps

  1. In a Feishu DM (persistent session key), manually switch model: /model deepseek/deepseek-v4-pro
  2. Start a new session: /new
  3. Check status: /status still shows deepseek/deepseek-v4-pro, not the configured default bailian/qwen3.6-plus

Root Cause

Feishu DM sessions use a fixed session key (agent:main:feishu:direct:ou_xxx). /new resets the transcript but does not clear the persisted model override from the previous conversation.

Impact

Users with fallback chains configured are especially affected:

  • They manually switch to a fallback model (e.g., deepseek/deepseek-v4-pro)
  • After /new, they expect to return to the primary model
  • Instead, the fallback persists silently

Suggested Solutions

Option A (recommended): /new should automatically clear any persisted model override and restore the session to agents.defaults.model.primary.

Option B: Add a config option:

{
  "sessions": {
    "resetModelOnNew": true
  }
}

Option C: /model default should resolve to the actual configured agents.defaults.model.primary (bailian/qwen3.6-plus), not to a literal bailian/default model name. Currently it fails with: "Model bailian/default is not allowed".

Environment

  • OpenClaw version: 2026.5.7
  • Channel: Feishu DM
  • Config: agents.defaults.model.primary: bailian/qwen3.6-plus with fallbacks to minimax/MiniMax-M2.7 and deepseek/deepseek-v4-pro

Workaround

Currently requires explicit: /new bailian/qwen3.6-plus every time, or /model bailian/qwen3.6-plus after /new.

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 - 💡(How to fix) Fix `/new` does not clear persisted model override in channel-bound sessions