-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Feature]: Optional session activity watchdog and alerts (blocked by #39127) #39141
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestNew feature or requestimpact: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: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.enhancementNew feature or requestNew feature or requestimpact: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: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Summary
Blocked by #39127
#39127
Add an optional gateway-side watchdog that consumes sessions.activity state and emits alerts (stale runs, waiting too long, child sessions stuck), so operators don’t have to build their own monitoring. Baseline should require no LLM tokens; optional tokenized summaries can be enabled.
Problem to solve
Even with a sessions.activity API, many users will not implement their own monitoring/control loop. Operators still need an easy way to detect and surface issues such as:
Today, users must build polling scripts, manually watch UIs/logs, or miss these problems entirely.
This should be a built-in, opt-in capability that works out of the box once #39127 exists.
Proposed solution
Dependency
A) Watchdog engine (gateway-side, event-driven)
B) Outputs (no-token baseline)
Provide alert outputs that do not require LLM calls:
Alerts should be deduped and rate-limited to avoid spam.
C) Optional tokenized summaries (opt-in)
If enabled, when an alert triggers, optionally call a cheap model to generate:
Requirements:
D) Configuration requirements
Security
Test plan
Alternatives considered
Impact
Affected: operators running OpenClaw always-on (VPS/home server), multi-agent users, shared inbox setups.
Severity: reduces downtime and operator babysitting; prevents “silent stuck” states.
Frequency: continuous value for always-on deployments.
Consequence: without it, monitoring remains DIY and inconsistent.
Evidence/examples
Evidence/examples (optional)
Examples of desired alerts:
Additional information
No response