-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Cron jobs stall during AI model calls (model_call:stream_progress never completes) #91892
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.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.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.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.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.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.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.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
Priority
None yet
Environment
deepseek/deepseek-v4-flashlocalBug 1 —
sessionTarget: "main"withpayload.kind: "systemEvent"silently does nothingThe cron job is created successfully (gateway logs
[gateway] cron: job created). At the scheduled time, the job is never executed — no systemEvent is injected into the main session. No error in any log, no user-visible failure message. The job does not appear incron: listafter its execution window.Bug 2 —
sessionTarget: "isolated"stalls during AI model calls (model_call)The cron job starts, an isolated session is created. The session gets stuck in
state=processingwithactiveWorkKind=model_call. Diagnostic logs show:The delivery
announceis never sent to Telegram. The agent never produces any output — it remains inmodel_call:stream_progressforever.Bug 3 —
cron: wakewithmode: "now"reports success but failsThe tool API returns
{ "ok": true }, but the gateway sends a user-visible error message:⚠️ ⏰ Cron: now failed. No detailed error in the logs.What does work (workaround)
Cron isolated that runs deterministic Python scripts (no AI model calls) works perfectly. Delivery
announceto Telegram is delivered successfully. Example:python3 daily_summary.py(calendar + tasks fetch, no model calls) completed in ~2s.Relevant logs
Gateway journal:
Diagnostic (repeated every ~30s while stalled):
cron run --forceoutput:{ "ok": true, "enqueued": true, "runId": "manual:<id>:<ts>:1" }Then it also stalls the same way.
Expected behavior
sessionTarget: "main"+systemEventshould inject the event into the main sessionsessionTarget: "isolated"should be able to make AI model calls and complete normallycron: wakewithmode: "now"should either work or return a clear error