openclaw - 💡(How to fix) Fix [Bug]: 2026.4.25 — heartbeat.model override ignored; heartbeat runs on session primary then falls back to gpt-5 [2 comments, 3 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#72940Fetched 2026-04-28 06:29:55
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×2closed ×1labeled ×1subscribed ×1

After upgrading to 2026.4.25, the heartbeat.model override is silently ignored. Heartbeat runs on openai/gpt-5 (the first fallback) instead of the configured openrouter/anthropic/claude-haiku-4.5.

Config (unchanged from 2026.4.23 where it worked correctly):

"heartbeat": {
  "every": "90m",
  "isolatedSession": true,
  "lightContext": true,
  "model": "openrouter/anthropic/claude-haiku-4.5",
  "activeHours": {
    "start": "08:30",
    "end": "22:30",
    "timezone": "America/Los_Angeles"
  }
}

agents.defaults.model (session primary and fallbacks):

"model": {
  "primary": "openrouter/anthropic/claude-sonnet-4.6",
  "fallbacks": [
    "openai/gpt-5",
    "openai/gpt-5-mini"
  ]
}

Root Cause

After upgrading to 2026.4.25, the heartbeat.model override is silently ignored. Heartbeat runs on openai/gpt-5 (the first fallback) instead of the configured openrouter/anthropic/claude-haiku-4.5.

Config (unchanged from 2026.4.23 where it worked correctly):

"heartbeat": {
  "every": "90m",
  "isolatedSession": true,
  "lightContext": true,
  "model": "openrouter/anthropic/claude-haiku-4.5",
  "activeHours": {
    "start": "08:30",
    "end": "22:30",
    "timezone": "America/Los_Angeles"
  }
}

agents.defaults.model (session primary and fallbacks):

"model": {
  "primary": "openrouter/anthropic/claude-sonnet-4.6",
  "fallbacks": [
    "openai/gpt-5",
    "openai/gpt-5-mini"
  ]
}

Fix Action

Fix / Workaround

  1. Configure agents.defaults.heartbeat.model to a different model than agents.defaults.model.primary
  2. Configure agents.defaults.model.fallbacks with openai/gpt-5 as first fallback
  3. Upgrade to 2026.4.25
  4. Wait for heartbeat to fire
  5. Observe openclaw status — heartbeat session shows gpt-5 instead of configured Haiku model

Code Example

"heartbeat": {
  "every": "90m",
  "isolatedSession": true,
  "lightContext": true,
  "model": "openrouter/anthropic/claude-haiku-4.5",
  "activeHours": {
    "start": "08:30",
    "end": "22:30",
    "timezone": "America/Los_Angeles"
  }
}

---

"model": {
  "primary": "openrouter/anthropic/claude-sonnet-4.6",
  "fallbacks": [
    "openai/gpt-5",
    "openai/gpt-5-mini"
  ]
}

---

│ agent:main:main:heartbeat │ direct │ 6m ago │ gpt-5 │ 37k/400k (9%) · 51% cached │

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading to 2026.4.25, the heartbeat.model override is silently ignored. Heartbeat runs on openai/gpt-5 (the first fallback) instead of the configured openrouter/anthropic/claude-haiku-4.5.

Config (unchanged from 2026.4.23 where it worked correctly):

"heartbeat": {
  "every": "90m",
  "isolatedSession": true,
  "lightContext": true,
  "model": "openrouter/anthropic/claude-haiku-4.5",
  "activeHours": {
    "start": "08:30",
    "end": "22:30",
    "timezone": "America/Los_Angeles"
  }
}

agents.defaults.model (session primary and fallbacks):

"model": {
  "primary": "openrouter/anthropic/claude-sonnet-4.6",
  "fallbacks": [
    "openai/gpt-5",
    "openai/gpt-5-mini"
  ]
}

Steps to reproduce

  1. Configure agents.defaults.heartbeat.model to a different model than agents.defaults.model.primary
  2. Configure agents.defaults.model.fallbacks with openai/gpt-5 as first fallback
  3. Upgrade to 2026.4.25
  4. Wait for heartbeat to fire
  5. Observe openclaw status — heartbeat session shows gpt-5 instead of configured Haiku model

Expected: Heartbeat runs on openrouter/anthropic/claude-haiku-4.5 as configured.

Actual: Heartbeat runs on openai/gpt-5 (first fallback). The model override is silently dropped.

Additional observations:

  • Token count jumped from ~9.6k to 37k suggesting lightContext: true and isolatedSession: true are also not being honored
  • This worked correctly on 2026.4.23 — regression introduced in 2026.4.24 or 2026.4.25
  • Clearing the heartbeat session file and sessions.json entry did not resolve the issue

Related issues: #58137 (heartbeat model override ignored, force-switched to main session model — reported on 2026.3.28, apparently not fully resolved)

Expected behavior

Heartbeat runs on openrouter/anthropic/claude-haiku-4.5 as configured.

Actual behavior

Heartbeat runs on openai/gpt-5 (first fallback). The model override is silently dropped.

openclaw status shows the heartbeat session running on gpt-5:

│ agent:main:main:heartbeat │ direct │ 6m ago │ gpt-5 │ 37k/400k (9%) · 51% cached │

Token count also indicates lightContext: true and isolatedSession: true are not being honored — 37k tokens vs ~9.6k before the upgrade.

The agent itself (queried via Telegram) confirmed no heartbeat model override is visible in the active session: "The active model is Claude Sonnet 4.6. That's what the next heartbeat would run on — same model, no override set."

OpenClaw version

2026.4.25 (aa36ee6)

Operating system

Linux Mint, linux 6.8.0-110-generic x64, node 24.14.1

Install method

npm global via openclaw update

Model

openrouter/claude-sonnet-4.5

Provider / routing chain

openrouter

Additional provider/model setup details

Upgraded from: 2026.4.24 (issue not present on 2026.4.23 — heartbeat was correctly using Haiku)

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The heartbeat.model override is likely being ignored due to a regression introduced in version 2026.4.24 or 2026.4.25, causing the heartbeat to run on the first fallback model openai/gpt-5 instead of the configured openrouter/anthropic/claude-haiku-4.5.

Guidance

  • Verify that the heartbeat.model configuration is correctly set to openrouter/anthropic/claude-haiku-4.5 and that there are no other configuration files or environment variables overriding this setting.
  • Check the OpenClaw documentation for any changes to the heartbeat.model configuration or fallback behavior in versions 2026.4.24 and 2026.4.25.
  • Consider downgrading to version 2026.4.23, where the heartbeat model override was working correctly, as a temporary workaround.
  • Monitor the token count and openclaw status output to ensure that the lightContext and isolatedSession settings are being honored.

Example

No code snippet is provided as the issue seems to be related to a configuration or versioning problem rather than a code error.

Notes

The issue may be related to a known problem reported in #58137, which was apparently not fully resolved. The fact that clearing the heartbeat session file and sessions.json entry did not resolve the issue suggests that the problem may be more complex.

Recommendation

Apply workaround: Downgrade to version 2026.4.23, where the heartbeat model override was working correctly, until a fix is available for the regression introduced in version 2026.4.24 or 2026.4.25.

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…

FAQ

Expected behavior

Heartbeat runs on openrouter/anthropic/claude-haiku-4.5 as configured.

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 [Bug]: 2026.4.25 — heartbeat.model override ignored; heartbeat runs on session primary then falls back to gpt-5 [2 comments, 3 participants]