-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Heartbeat scheduler silently stops dispatching polls after session compaction/recreation #87438
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
The internal heartbeat scheduler silently stopped dispatching polls to
agent:main:mainfor ~2h52m despite an active, responsive session and a stable gateway process. Heartbeats resumed only after aconfig.patchwrite toagents.defaults.heartbeat.every(same value), suggesting the scheduler was in a stopped state and the config file write re-initialized it.Environment
agent:main:main(direct/webchat)agents.defaults.heartbeat.every: "10m"— always set, unchangedopenrouter/openrouter/primary(402 billing exhausted), failover toopenrouter/openrouter/owl-alphaTimeline (UTC)
config.patchonagents.defaults.heartbeat.every(no-op value change)Key Facts
Possible Causes
Expected Behavior
Heartbeat scheduling should survive session recreation and compaction without requiring a config write.
Severity
Medium. Heartbeats are the primary in-band channel for an autonomous agent to self-report, check calendars, scan email, and surface issues to their human. A silent multi-hour gap with no logged error is a reliability concern.
Logs
No explicit error messages were logged during the gap. The session transcript simply shows no
[OpenClaw heartbeat poll]messages arriving between 18:44 and 21:36. The next poll after the gap correlates with theconfig.patchtimestamp.