openclaw - 💡(How to fix) Fix Heartbeat机制异常:模型切换、触发失败、输出格式变化 [1 comments, 1 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#58851Fetched 2026-04-08 02:31:54
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1locked ×1

Code Example

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "moonshot/kimi-k2.5",
        "fallbacks": [
          "qwen-portal/coder-model",
          "qwen-portal/vision-model",
          "openrouter/qwen/qwen3-max",
          "moonshot/kimi-k2.5",
          "deepseek/deepseek-chat"
        ]
      },
      "heartbeat": {
        "every": "120m",
        "activeHours": {
          "start": "08:00",
          "end": "02:00"
        },
        "model": "deepseek/deepseek-chat"
      }
    }
  }
}
RAW_BUFFERClick to expand / collapse

Heartbeat机制异常:模型切换、触发失败、输出格式变化

问题描述

在使用OpenClaw的heartbeat机制时,遇到了以下几个问题:

  1. Heartbeat有时无法触发 - 配置了120分钟间隔,但并非每次都按时触发
  2. 执行模型不一致 - 配置使用deepseek模型,但实际执行时有时会变成kimi
  3. 输出格式变化 - 之前的heartbeat输出是"先输出思考过程,再输出执行过程",现在只有"执行过程"(一堆tool输出 + 最后的HEARTBEAT_OK)

配置信息

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "moonshot/kimi-k2.5",
        "fallbacks": [
          "qwen-portal/coder-model",
          "qwen-portal/vision-model",
          "openrouter/qwen/qwen3-max",
          "moonshot/kimi-k2.5",
          "deepseek/deepseek-chat"
        ]
      },
      "heartbeat": {
        "every": "120m",
        "activeHours": {
          "start": "08:00",
          "end": "02:00"
        },
        "model": "deepseek/deepseek-chat"
      }
    }
  }
}

预期行为

  1. Heartbeat应该严格按照配置的120分钟间隔触发
  2. Heartbeat应该始终使用配置的deepseek/deepseek-chat模型执行
  3. Heartbeat输出应该包含思考过程(读取HEARTBEAT.md后的分析)和执行过程

实际行为

  1. Heartbeat触发不稳定,有时120分钟后没有触发
  2. 观察到的heartbeat执行模型有时是kimi(moonshot/kimi-k2.5),而不是配置的deepseek
  3. 输出格式变为只有工具调用输出和最后的HEARTBEAT_OK,缺少思考过程

环境信息

  • OpenClaw版本:2026.3.24(根据meta.lastTouchedVersion)
  • 操作系统:Linux (WSL2)
  • 使用渠道:Feishu

附加信息

我注意到agents.defaults.model.primary配置的是moonshot/kimi-k2.5,而heartbeat.model配置的是deepseek/deepseek-chat。是否heartbeat执行时会受到primary模型的影响?

另外,heartbeat输出格式的变化是最近才出现的,之前都是正常的两阶段输出(思考+执行)。


感谢开发团队的工作!OpenClaw是一个非常棒的项目。如果需要我们提供更多的日志信息或进行测试,请告诉我。

extent analysis

TL;DR

  • Verify the configuration priority between agents.defaults.model.primary and heartbeat.model to ensure the correct model is used for heartbeat executions.

Guidance

  • Review the OpenClaw documentation to understand how the primary model and fallbacks list interact with the heartbeat.model configuration.
  • Check if there are any version-specific changes in OpenClaw (version 2026.3.24) that could affect the heartbeat mechanism or model selection.
  • Test the heartbeat functionality with a simplified configuration, removing the fallbacks list to see if it stabilizes the model selection and output format.
  • Investigate recent changes in the environment or OpenClaw updates that could have introduced the output format change.

Example

  • No specific code example is provided due to the lack of direct code references in the issue.

Notes

  • The interaction between the primary model and heartbeat.model configurations is unclear and may be contributing to the inconsistent model selection.
  • The recent change in output format suggests a potential regression or configuration issue.

Recommendation

  • Apply workaround: Temporarily remove or simplify the fallbacks list to test if it resolves the model inconsistency and output format issues, as this may help isolate the cause of the problem.

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