Bug Summary
Cron jobs with payload.model set to a non-default model are rejected with LiveSessionModelSwitchError before the LLM is called. This is a regression in 2026.3.28.
Bug Type
Regression (worked before, now fails)
Summary
Cron jobs with payload.model set to a non-default model (e.g. minimax/MiniMax-M2.7) are rejected with LiveSessionModelSwitchError before the LLM is called. The new per-agent model resolution logic in 2026.3.28 compares the cron's payload model against the agent's configured default model, detects a mismatch, and aborts the session immediately. This worked correctly on 2026.3.24.
Steps to reproduce
- Configure an agent with
agents.defaults.model.primary: minimax/MiniMax-M2.7
- Create a cron job targeting that agent with
payload.model: minimax/MiniMax-M2.7 (explicitly setting the same model)
- Trigger the cron (scheduled or manual via `openclaw cron run`)
- Observe:
LiveSessionModelSwitchError: Live session model switch requested: minimax/MiniMax-M2.7 in the run log
- Session aborts in under 1 second, no LLM call is made
Expected behavior
Cron jobs with payload.model overrides should run successfully on the specified model. The payload model override should be respected and the cron should complete normally.
Actual behavior
Every cron run with a payload.model that matches (or differs from) the agent's default model fails instantly with:
LiveSessionModelSwitchError: Live session model switch requested: minimax/MiniMax-M2.7
The error fires at the top of the run loop in resolvePersistedLiveSelection() before any LLM call is made. Duration is under 1 second.
OpenClaw version
2026.3.28 (regression introduced), 2026.3.24 (last known good)
Operating system
macOS (Darwin), likely all platforms
Install method
npm install -g openclaw
Model
- minimax/MiniMax-M2.7 (cron payload override)
- ollama/glm-5:cloud (agent default)
Any combination of primary + override models triggers this, even when explicitly setting the same model.
Additional provider/model setup details
Logs, screenshots, and evidence
LiveSessionModelSwitchError: Live session model switch requested: minimax/MiniMax-M2.7
Impact and severity
All cron jobs using non-default models are broken. Users cannot use isolated session cron jobs with cloud models like minimax, OpenAI, Anthropic, etc.
Related Issues
Suggested fix
The per-agent model resolution logic should respect payload.model overrides in isolated cron sessions without triggering LiveSessionModelSwitchError. The fix should allow cron jobs to explicitly specify a model via payload.model and have that be honored in isolated sessions.
Bug Summary
Cron jobs with
payload.modelset to a non-default model are rejected withLiveSessionModelSwitchErrorbefore the LLM is called. This is a regression in 2026.3.28.Bug Type
Regression (worked before, now fails)
Summary
Cron jobs with
payload.modelset to a non-default model (e.g. minimax/MiniMax-M2.7) are rejected withLiveSessionModelSwitchErrorbefore the LLM is called. The new per-agent model resolution logic in 2026.3.28 compares the cron's payload model against the agent's configured default model, detects a mismatch, and aborts the session immediately. This worked correctly on 2026.3.24.Steps to reproduce
agents.defaults.model.primary: minimax/MiniMax-M2.7payload.model: minimax/MiniMax-M2.7(explicitly setting the same model)LiveSessionModelSwitchError: Live session model switch requested: minimax/MiniMax-M2.7in the run logExpected behavior
Cron jobs with
payload.modeloverrides should run successfully on the specified model. The payload model override should be respected and the cron should complete normally.Actual behavior
Every cron run with a
payload.modelthat matches (or differs from) the agent's default model fails instantly with:The error fires at the top of the run loop in
resolvePersistedLiveSelection()before any LLM call is made. Duration is under 1 second.OpenClaw version
2026.3.28 (regression introduced), 2026.3.24 (last known good)
Operating system
macOS (Darwin), likely all platforms
Install method
npm install -g openclaw
Model
Any combination of primary + override models triggers this, even when explicitly setting the same model.
Additional provider/model setup details
Logs, screenshots, and evidence
Impact and severity
All cron jobs using non-default models are broken. Users cannot use isolated session cron jobs with cloud models like minimax, OpenAI, Anthropic, etc.
Related Issues
Suggested fix
The per-agent model resolution logic should respect
payload.modeloverrides in isolated cron sessions without triggeringLiveSessionModelSwitchError. The fix should allow cron jobs to explicitly specify a model viapayload.modeland have that be honored in isolated sessions.