-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Cron fallback model works in normal session but LLM request fails when triggered via cron #97335
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: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: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
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: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: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.Thin issue quality; more reproduction proof or environment detail is needed.
Type
Fields
Priority
None yet
Describe the Bug
When a cron job is configured with a primary model (e.g.
volcengine-plan/ark-code-latest) and a fallback model (deepseek/deepseek-v4-flash), the cron job fails with "LLM request failed" even when:Steps to Reproduce
agentTurncron job:volcengine-plan/ark-code-latestdeepseek/deepseek-v4-flashdeepseek/deepseek-v4-flash(confirmed in run logs: provider=deepseek, model=deepseek-v4-flash)Evidence
Cron run log (last run before fix):
Session history shows the model was actively working (4-5 tool calls completed successfully), then abruptly terminated:
Verification:
deepseek/deepseek-v4-flash) was then set as the primary model on the same cron job, with no other configuration changesExpected Behavior
When a cron job falls back to a fallback model, and that model responds successfully, the cron job should complete normally—not abort mid-execution.
Actual Behavior
The cron runtime aborts the request ("Request was aborted") even though the fallback model is responding and producing valid tool calls. The abort happens after several successful model turns.
Additional Context
Workaround
Setting the same model (
deepseek/deepseek-v4-flash) as the primary model (removing the fallback chain) resolves the issue immediately. The problem appears to be in how the runtime manages session lifecycle when switching to fallback models.