-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Fallback models not triggered on provider-level errors (e.g., AWS Bedrock model ID changes) #44353
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:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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.
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:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Model fallbacks configured in
openclaw.jsonare not triggered when the primary model fails with a provider-level error. The error is treated as terminal, leaving the session/subagent failed rather than retrying with a fallback.Context
AWS Bedrock recently changed behavior: raw model IDs (
anthropic.claude-opus-4-5-20251101-v1:0) no longer work for on-demand throughput. You must now use inference profile IDs (us.anthropic.claude-opus-4-5-20251101-v1:0).This broke all Bedrock-primary configurations overnight with no recovery via fallback.
Config
{ "agents": { "defaults": { "subagents": { "model": { "primary": "amazon-bedrock/anthropic.claude-opus-4-5-20251101-v1:0", "fallbacks": ["github-copilot/claude-sonnet-4"] } } } } }Error from Bedrock
Logs (relevant excerpts)
No fallback attempt logged. Run terminates immediately after
isError=true.Expected Behavior
When primary model fails with a provider error:
Actual Behavior
isError=true→ run terminatesImpact
Possible Causes
Environment