openclaw - 💡(How to fix) Fix Feature Request: Notify user on model fallback switch [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#69702Fetched 2026-04-22 07:49:13
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Author
Timeline (top)
commented ×1

Code Example

"agents": {
  "defaults": {
    "model": {
      "primary": "ollama/kimi-k2.6:cloud",
      "fallbacks": ["ollama/glm-5.1:cloud"],
      "notifyOnFallback": true,
      "requireApprovalForFallback": false
    }
  }
}
RAW_BUFFERClick to expand / collapse

Problem

When the primary model fails (e.g., Ollama timeout, server unreachable), OpenClaw silently falls back to the configured fallback model. The user is never informed about this switch.

Impact

  • User receives responses from a different model without knowing
  • Quality/reasoning differences between models can confuse the user
  • Silent degradation of experience

Steps to Reproduce

  1. Set primary model to e.g. ollama/kimi-k2.6:cloud
  2. Set fallback to ollama/glm-5.1:cloud
  3. Trigger a failure on primary (disconnect Ollama, wait for timeout)
  4. Observe: Agent continues with fallback, user gets no notification

Desired Behavior

Option A: Simple notification

When fallback is activated, send a message to the user:

⚠️ Primary model kimi-k2.6:cloud unavailable. Switched to fallback glm-5.1:cloud.

When primary recovers:

✅ Primary model kimi-k2.6:cloud restored.

Option B: Configurable policy

Add config options:

"agents": {
  "defaults": {
    "model": {
      "primary": "ollama/kimi-k2.6:cloud",
      "fallbacks": ["ollama/glm-5.1:cloud"],
      "notifyOnFallback": true,
      "requireApprovalForFallback": false
    }
  }
}

Option C: Auto-retry with backoff

Instead of permanent switch, retry primary model every N requests and auto-restore.

Environment

  • OpenClaw version: 2026.4.15
  • Runtime: agent mode
  • Primary model: ollama/kimi-k2.6:cloud
  • Fallback: ollama/glm-5.1:cloud

Additional Context

This happened today during a long-running embedding task. The agent silently switched to GLM 5.1 without the user knowing, leading to confusion about response quality.


Feature requested by a user via their OpenClaw agent

extent analysis

TL;DR

Implement a notification mechanism to inform the user when the primary model fails and the fallback model is activated.

Guidance

  • Review the desired behavior options (A, B, C) and choose the one that best fits the requirements, considering factors like user experience and system reliability.
  • To implement Option A, modify the OpenClaw code to send a notification message to the user when the fallback model is activated and when the primary model is restored.
  • Consider adding configuration options (as in Option B) to make the notification behavior customizable, allowing users to opt-in or opt-out of notifications.
  • If implementing Option C, design a retry mechanism with exponential backoff to attempt to restore the primary model, ensuring that the system does not overload the primary model with repeated requests.

Example

// Example configuration for Option B
"agents": {
  "defaults": {
    "model": {
      "primary": "ollama/kimi-k2.6:cloud",
      "fallbacks": ["ollama/glm-5.1:cloud"],
      "notifyOnFallback": true,
      "requireApprovalForFallback": false
    }
  }
}

Notes

The chosen solution should balance user experience, system reliability, and potential performance impacts. It is essential to test the implemented solution thoroughly to ensure it works as expected under various scenarios, including primary model failures and recoveries.

Recommendation

Apply workaround: Implement Option A (Simple notification) as it provides a straightforward solution to inform the user about the model switch, ensuring transparency and improving the overall user experience.

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 Feature Request: Notify user on model fallback switch [1 comments, 2 participants]