Summary
When using /model to switch an agent's default model, existing sessions retain their previously stored session-level model override. If that overridden model later becomes unavailable (e.g. expired API credit, quota exceeded), the session continues attempting to use it and fails — even after the agent default has been updated.
Steps to Reproduce
- In a channel, use
/model gpt-5.3 (or any model) — this stores the model at the session level
- The API credit/quota for that model runs out
- Use
/model sonnet to switch the agent default to a working model
- The session continues failing with
model not allowed: <old model>
Expected Behavior
Switching the agent's default model (via /model) should also clear or update the session-level model override for active sessions associated with that agent.
Actual Behavior
The session-level model persists independently of the agent default. The gateway returns errorCode=INVALID_REQUEST errorMessage=model not allowed: openai-codex/gpt-5.3 on subsequent requests.
Workaround
Manually doing /reset in the affected channel after switching the agent default model clears the session and resolves the issue.
Environment
- OpenClaw: 2026.2.26
- macOS 26.2 (arm64)
Summary
When using
/modelto switch an agent's default model, existing sessions retain their previously stored session-level model override. If that overridden model later becomes unavailable (e.g. expired API credit, quota exceeded), the session continues attempting to use it and fails — even after the agent default has been updated.Steps to Reproduce
/model gpt-5.3(or any model) — this stores the model at the session level/model sonnetto switch the agent default to a working modelmodel not allowed: <old model>Expected Behavior
Switching the agent's default model (via
/model) should also clear or update the session-level model override for active sessions associated with that agent.Actual Behavior
The session-level model persists independently of the agent default. The gateway returns
errorCode=INVALID_REQUEST errorMessage=model not allowed: openai-codex/gpt-5.3on subsequent requests.Workaround
Manually doing
/resetin the affected channel after switching the agent default model clears the session and resolves the issue.Environment