hermes - 💡(How to fix) Fix Feature Request: Add heartbeat/keepalive for long-running connections (e.g. Kimi API)

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…

Code Example

heartbeat:
  enabled: true
  interval: "5s"  # 空闲时发送保活 ping
RAW_BUFFERClick to expand / collapse

Hermes 连接保活 (heartbeat) 需求反馈

问题

使用 Kimi Coding API 时,对话空闲一段时间后自动重试失败(HTTP 404/超时),手动 /retry 立即成功。已发生多次。

根因分析

对比 OpenClaw 配置发现,OpenClaw 有 heartbeat: { every: "5s" } 机制保持长连接,Hermes 缺少此功能。空闲后连接被网络层/Kimi 服务端断开,自动重试复用死连接导致失败。

建议

在 Hermes 配置中增加类似选项:

heartbeat:
  enabled: true
  interval: "5s"  # 空闲时发送保活 ping

环境

  • Provider: kimi-coding (api.kimi.com/coding/v1)
  • Model: kimi-for-coding
  • 现象: 长时间无交互后自动重试失败,手动 retry 成功

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

hermes - 💡(How to fix) Fix Feature Request: Add heartbeat/keepalive for long-running connections (e.g. Kimi API)