Skip to content

[Bug] Heartbeat model override still ignored in 2026.2.19 #21144

@rasanderoland

Description

@rasanderoland

Summary

The heartbeat.model config field is documented to allow per-heartbeat model overrides, but the setting is still ignored at runtime in version 2026.2.19-2. Heartbeats always use the main session's default model instead of the configured heartbeat model.

Environment

  • OpenClaw version: 2026.2.19-2
  • OS: Linux 6.17.0-14-generic (x64)
  • Node: v22.22.0

Configuration

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "minimax-portal/MiniMax-M2.5"
      },
      "heartbeat": {
        "every": "30m",
        "model": "gemini-2.5-flash",
        "target": "telegram",
        "to": "7964555583"
      }
    }
  }
}

Expected Behavior

Heartbeats should run using gemini-2.5-flash (using GOOGLE_API_KEY).

Actual Behavior

Heartbeats continue to use the main session's default model (minimax-portal/MiniMax-M2.5).

Evidence

Logs show heartbeat started but uses wrong model:

  • Config shows: heartbeat.model = "gemini-2.5-flash"
  • Runtime shows: agent model = minimax-portal/MiniMax-M2.5

Previous Issues

This appears to be a regression. The following issues were reported and supposedly fixed:

Impact

Cannot use different models for heartbeats as documented. Forces use of primary model for all heartbeat runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions