-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Heartbeat sessions report 'assistant turn failed before producing content' on model initialization failure #90049
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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-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: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.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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-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: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.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Description
When a heartbeat session's configured model fails to initialize (cloud provider timeout, rate limit, transient error), the gateway logs:
This phrasing implies the assistant's code failed, but in these cases no assistant code has run. The model layer failed before the turn began. The result is:
Steps to reproduce
kimi-k2.6:cloudvia Ollama proxy)[assistant turn failed before producing content]in logsRouting context
The failure path is: heartbeat → Ollama localhost proxy → cloud provider. The provider hiccups, Ollama returns an error, and the gateway sees that as "assistant turn failed." This could be an OC issue, or an Ollama issue — the logging makes it hard to tell.
Expected behavior
[model initialization failed: <reason>][assistant turn failed: <error>][assistant turn produced empty output]Suggested fix
In gateway heartbeat handling, distinguish between:
model.init()failure → provider errorassistant.run()failure → code errorFor heartbeat specifically: if model init fails and a fallback model is configured (e.g., local Ollama), retry once with fallback before giving up.
Environment
Impact
Medium — not a crash, but degrades reliability of autonomous functions and makes provider issues harder to diagnose.