Problem Description
When a user explicitly changes the model via /model <model-id>, the session-level model override persists even after running /new or /reset. This causes the session to continue using the previously selected model instead of falling back to the configured default (agents.defaults.model.primary).
This behavior is unexpected because:
/new and /reset are documented as "start fresh" commands
- Gateway restarts do not clear this override
- The only way to restore the default model is to manually run
/status default (or session_status model=default)
Steps to Reproduce
- Configure
agents.defaults.model.primary to anthropic_kimi/k2.6-code-preview
- Start a conversation, verify model is
anthropic_kimi/k2.6-code-preview
- Run
/model openai-codex/gpt-5.4 to switch model
- Run
/new or /reset to "start fresh"
- Check
/status — model is still openai-codex/gpt-5.4 (unexpected)
- Expected: model should reset to
anthropic_kimi/k2.6-code-preview
Current Workaround
After /new, manually run /status default to clear the model override.
Proposed Solutions
Option A (Preferred): /new and /reset should automatically clear session-level model overrides, respecting the agents.defaults.model configuration.
Option B: Add a configuration option like session.resetClearsModelOverride: true to enable this behavior explicitly.
Environment
- OpenClaw version: 2026.4.12
- Config:
agents.defaults.model.primary = "anthropic_kimi/k2.6-code-preview"
Signatures
Problem Description
When a user explicitly changes the model via
/model <model-id>, the session-level model override persists even after running/newor/reset. This causes the session to continue using the previously selected model instead of falling back to the configured default (agents.defaults.model.primary).This behavior is unexpected because:
/newand/resetare documented as "start fresh" commands/status default(orsession_status model=default)Steps to Reproduce
agents.defaults.model.primarytoanthropic_kimi/k2.6-code-previewanthropic_kimi/k2.6-code-preview/model openai-codex/gpt-5.4to switch model/newor/resetto "start fresh"/status— model is stillopenai-codex/gpt-5.4(unexpected)anthropic_kimi/k2.6-code-previewCurrent Workaround
After
/new, manually run/status defaultto clear the model override.Proposed Solutions
Option A (Preferred):
/newand/resetshould automatically clear session-level model overrides, respecting theagents.defaults.modelconfiguration.Option B: Add a configuration option like
session.resetClearsModelOverride: trueto enable this behavior explicitly.Environment
agents.defaults.model.primary = "anthropic_kimi/k2.6-code-preview"Signatures