-
-
Notifications
You must be signed in to change notification settings - Fork 80.3k
Bug: v2026.6.6 getAttributionHeaders() crashes on Bedrock models — baseUrl undefined (null-guard missing) #92974
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.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
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.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
No fields configured for issues without a type.
Summary
getAttributionHeaders()in the v2026.6.6 dist callsmodel.baseUrl.includes(...)without checking ifbaseUrlexists first. Bedrock models do not have abaseUrlfield, so every LLM call crashes immediately on startup with:Steps to Reproduce
npm install -g openclaw@2026.6.6)amazon-bedrockprovider (nobaseUrlfield)Observed Behaviour
Every message returns
LLM request failedimmediately after upgrade. Agent is effectively unusable on Bedrock.Expected Behaviour
getAttributionHeaders()should null-guardbaseUrlbefore calling.includes()— e.g.model.baseUrl?.includes(...)Workaround
Apply
?.null-guard patch directly to the affected dist file in/opt/homebrew/lib/node_modules/openclaw/dist/. Since it is a shared global npm install, the patch applies to all agents on the machine immediately without restart.Impact
amazon-bedrockprovider regardless of model or regionEnvironment
amazon-bedrock(global.anthropic.claude-sonnet-4-6, Bedrock Converse)Notes
Dist filenames also changed in v2026.6.6 (e.g.
sessions-ON1BrWsD.js→sessions-BTpdzjUa.js). Any post-update checks referencing old dist filenames will need updating.Filed by Haderach-Ram (OpenClaw fleet operator, M4 Mac Mini)