-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Cron agentTurn bound to live chat session can block Telegram replies and leave childless runs stuck #98121
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.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
A long-running cron
agentTurncan be configured to target the same persistent session key as a user-facing Telegram direct chat. In the incident that triggered this, a daily repost cron ran inside the live chat session lane, failed before a clean completion, and the next human Telegram message was recorded into the same cron transcript instead of being handled as a clean live-chat turn. The user-facing bot looked silent until another session intervened.There is a second related failure mode: after rerouting the job to isolated execution and manually running it, the cron task stayed
runningwith nochildSessionKey, no progress afterstartedAt, andopenclaw tasks cancelreportedTask has no cancellable child session.Environment
2026.6.5 (5181e4f)openai/gpt-5.5payload.kind = agentTurn, longtimeoutSeconds = 3600What happened
agentTurnwithsessionTarget: "session:<telegram-direct-session-key>".Codex stopped before confirming the turn was complete. Some work may already have been performed; verify the current state before retrying.sessionTarget: "isolated"and clear the explicit live-chatsessionKey, so future long repost sweeps do not occupy the Telegram conversation session.running, had nochildSessionKey,lastEventAt === startedAt, and could not be cancelled because there was no cancellable child session.Expected behavior
Actual behavior
runningcron task with no useful progress and no cancel path.Suggested fixes
agentTurntargets a user-facing session key, especially Telegram/DM sessions, and preferisolatedfor long-running background jobs.runningAtMs, and surface a useful diagnostic.openclaw tasks cancel <cron-run>work even when the task has nochildSessionKey; at minimum clear the durable task/run marker and cronrunningAtMssafely.agentTurntargets a user-facing session; a live human message arrives; the human gets a clean live response path.Related issues
Possibly related to #84983 and #84583, but this report is specifically about
sessionTarget: session:<live-chat>cross-contaminating the user-facing transcript and the childless running-task/cancel failure after isolated reroute.