← Back to library

用 Heartbeat 补捞“被中断对话”的提醒机制

解决长任务对话“半路断掉后无人跟进”的场景:通过 heartbeat 定时检查会话状态并仅在满足条件时提醒。

REDDITDiscovered 2026-02-13Author Wave-in-Kanagawa
Prerequisites
  • Heartbeat polling is already enabled in your OpenClaw setup.
  • You maintain a small checklist in `HEARTBEAT.md` for what to check each cycle.
Steps
  1. Define abandoned criteria first (e.g., pending task + no user response for N hours).
  2. In heartbeat logic, check only active/pending sessions and suppress noisy routine pings.
  3. When criteria are met, send a concise re-engagement message with current status + next action.
  4. Track false positives for a week and tighten thresholds before scaling.
Commands
openclaw gateway status
openclaw help
git status
Verify

Abandoned tasks are surfaced with fewer noise alerts, and users can resume from a clear next step.

Caveats
  • The Reddit post provides the pattern direction; exact thresholds need environment tuning(需验证)。
  • Do not ping during configured quiet hours unless urgency is explicit.
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post