-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Cron jobs can block human web-chat main-session turns #82766
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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.maintainerMaintainer-authored PRMaintainer-authored PR
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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.maintainerMaintainer-authored PRMaintainer-authored PR
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Scheduled cron review work and human web-chat turns can share the same main-session lane, causing interactive replies to wait behind background cron work.
Steps to reproduce
sessionTarget="main"andwakeMode="now".Expected behavior
Background cron work should run on a cron-owned non-interactive lane, while human web-chat messages to the same agent remain on the human main-session lane. Cron output can still use the main session's last delivery context when it needs to reply, but routine cron turns should not hold or confuse the human chat lane.
Actual behavior
Gateway logs showed a cron-triggered main-session run lasting about 66 seconds. A human web-chat message was queued for the same redacted session while the cron run was still active, then started with
prev=processing new=processing reason="run_started" queueDepth=1. The affected human PR follow-up took 37.6 seconds, and two later tiny web-chat replies took 12.6 seconds and 15.1 seconds.OpenClaw version
2026.5.17
Operating system
NOT_ENOUGH_INFO
Install method
pnpm dev / gateway dev logs
Model
NOT_ENOUGH_INFO
Provider / routing chain
NOT_ENOUGH_INFO
Additional provider/model setup details
NOT_ENOUGH_INFO
Logs, screenshots, and evidence
Impact and severity
Affected: users interacting with web chat while scheduled review/cron work targets the same agent main session.
Severity: High, because background automation can delay or confuse interactive human replies.
Frequency: observed repeatedly in the captured log window.
Consequence: short human messages can take 12-37 seconds and enter a session state already marked processing by cron work.
Additional information
A narrow code-path review found current main-session cron jobs enqueue their system event and heartbeat wake using the job's main
sessionKey. That lets scheduled work target the same durable lane used by human web chat.