openclaw - 💡(How to fix) Fix Heartbeat执行时会话内容从UI消失 [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#62928Fetched 2026-04-09 08:00:34
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Code Example

# Gateway配置
gateway.bind: lan (0.0.0.0)
gateway.controlUi.allowedOrigins: ["*"]

# Heartbeat配置
heartbeat.interval: 120m

---

~/.openclaw/agents/main/sessions/
├── 001c4dc7-7ff7-460c-84ae-d351e4b6e19b.jsonl.reset.2026-04-07T10-39-39.817Z
├── 0756824c-659c-45cc-af50-db71bb25627a.jsonl.reset.2026-03-17T14-34-16.533Z
├── 08407870-de7c-4ef1-ba6e-0ce24bd9357b.jsonl
├── ... (多个会话文件)
RAW_BUFFERClick to expand / collapse

OpenClaw Heartbeat UI 显示问题报告

问题描述

Heartbeat任务执行过程中,UI界面中的会话内容会突然消失。

环境信息

  • 操作系统: macOS 26.3 (Sonoma) - Mac mini M4 Pro
  • OpenClaw版本: 2026.4.5
  • Node.js版本: v25.9.0
  • 安装方式: npm install -g openclaw
  • 迁移来源: WSL2 (Ubuntu 22.04)

问题现象

  1. Heartbeat任务确实在执行(从cron日志可以确认)
  2. 但执行到一半时,UI界面中的会话内容会消失
  3. 会话文件本身仍然存在(在 ~/.openclaw/agents/main/sessions/ 中)
  4. 问题在从WSL2迁移到Mac mini后仍然存在

相关配置

# Gateway配置
gateway.bind: lan (0.0.0.0)
gateway.controlUi.allowedOrigins: ["*"]

# Heartbeat配置
heartbeat.interval: 120m

会话目录状态

~/.openclaw/agents/main/sessions/
├── 001c4dc7-7ff7-460c-84ae-d351e4b6e19b.jsonl.reset.2026-04-07T10-39-39.817Z
├── 0756824c-659c-45cc-af50-db71bb25627a.jsonl.reset.2026-03-17T14-34-16.533Z
├── 08407870-de7c-4ef1-ba6e-0ce24bd9357b.jsonl
├── ... (多个会话文件)

Cron任务日志

~/.openclaw/cron/runs/ 可以看到任务确实在执行:

  • 任务ID: 84134237-c99e-41f1-a31f-b08be5104a64
  • 状态: finished (ok)
  • 但部分任务显示 "cron announce delivery failed"

已尝试的解决方案

  1. 修改 gateway.bindloopback 改为 lan
  2. 配置 gateway.controlUi.allowedOrigins["*"]
  3. 重启 Gateway 服务

可能的相关问题

  1. LCM (Lossless Context Management) 插件在压缩/总结会话时可能导致UI显示问题
  2. 跨平台迁移后可能存在路径或权限问题
  3. 会话文件在heartbeat执行过程中被锁定或修改

请求帮助

请开发团队帮助诊断:

  1. 为什么heartbeat执行时会话内容会从UI中消失?
  2. 如何查看更详细的调试日志?
  3. 是否有配置项可以控制这种行为?

附件

  • 完整的OpenClaw配置文件
  • 相关会话文件样本
  • 详细的日志文件

extent analysis

TL;DR

Check the LCM plugin configuration and session file permissions to resolve the issue of disappearing session content during Heartbeat task execution.

Guidance

  1. Verify LCM plugin configuration: Review the LCM plugin settings to ensure it is not causing issues with session content display during Heartbeat execution.
  2. Check session file permissions: Confirm that the session files in ~/.openclaw/agents/main/sessions/ have the correct permissions and are not being locked or modified during Heartbeat execution.
  3. Enable detailed debugging logs: Investigate how to enable more detailed debugging logs to gain insight into the issue, potentially by modifying the gateway.controlUi.allowedOrigins configuration or checking the cron task logs.
  4. Review cron task logs: Analyze the cron task logs in ~/.openclaw/cron/runs/ to identify any patterns or errors related to the "cron announce delivery failed" messages.

Notes

The issue may be related to the LCM plugin, session file permissions, or cron task execution. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Temporarily disable the LCM plugin or modify its configuration to prevent session content compression/summarization during Heartbeat execution, and monitor the issue to see if it resolves 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

openclaw - 💡(How to fix) Fix Heartbeat执行时会话内容从UI消失 [1 participants]