-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Feature: diagnostics stuck-session recovery ladder (steer → nudge → abort) #86159
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper-recovery-stuckclawsweeper: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.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: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper-recovery-stuckclawsweeper: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.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: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Type
Fields
Priority
None yet
Problem
Built-in
diagnosticsstuck-session recovery only supports abort-drain (abort_embedded_run) and release_lane afterstuckSessionAbortMs. Before that threshold, stalled embedded runs logrecovery=none/observe_only.For production assistants, aborting a long tool-heavy turn is often the wrong first move. Operators want a configurable ladder:
sessions.steer/ interrupt active run with a recovery promptsessions.sendif still no user-visible progresssessions.abort/abortAndDrainEmbeddedPiRunonly as last resortToday this requires a separate cron/heartbeat agent, which is fragile (model may ignore instructions, spam channels if misconfigured, etc.).
Proposed config
Expected behavior
session.stalled/ eligiblestalled_agent_run, run steer first (same path assessions.steer/ chat abort+inject).recheckMs; if still stalled,sessions.sendnudge.stuckSessionAbortMs, fall back to current abort-drain.recovery.requested/recovery.completedwithaction: steer|nudge|abort.Workaround in use
Cron heartbeat every 4m executing the ladder via
openclaw gateway call sessions.steer|abort+sessions_send, with gateway abort at 12m as final fallback.Environment
OpenClaw 2026.5.22, multi-agent gateway (Discord/Telegram), embedded Pi runs, lossless-claw context engine.