-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Reasoning default silently flipped to on for Claude models — doubles Anthropic spend, leaks thinking blocks to chat #73182
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:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for 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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.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:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.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.staleMarked as stale due to inactivityMarked as stale due to inactivity
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: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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.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:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.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.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Summary
An OpenClaw update around April 2026 silently flipped the default reasoning level for Claude models from
offtoon. The change has two compounding effects, both expensive:Users had no upgrade-time signal that the default flipped. The first symptom was the API bill.
Environment
Symptoms
Reasoning: on (hidden unless on/stream)even though the user never opted in./statusconfirmsReasoning: on.Reproduction
agents.list[].reasoningDefaultis unset).anthropic/claude-opus-4-7).Reasoning: ondespite no/reasoningtoggle and no explicit config.Root cause (suspected)
The default for
reasoningDefault(per-agent) appears to be implicitlyonfor Claude models when the field is unset, rather thanoff. There is noagents.defaults.reasoningDefaultfield exposed in config, so users cannot set it globally — they must set it on every agent individually.Workaround (current)
Persist
reasoningDefault: "off"per agent in~/.openclaw/openclaw.json:{ "agents": { "list": [ { "id": "main", "reasoningDefault": "off" } ] } }For an active session without restart: type
/reasoning offin chat.This works but is footgun-y:
Suggested fix
reasoningDefaulttoofffor all models unless the user explicitly opts in. Reasoning is a power-user feature; it should be opt-in, not opt-out.agents.defaults.reasoningDefaultso users can flip it once for all agents.[gateway] note: agent "main" has reasoning=on; thinking tokens will be billed and rendered). This catches accidental enables and the default-flip case.Severity
Medium-High. No data loss, no service outage. But:
Related
This is independent of the prose-narration issue (assistant text starting with "Let me ___", "Now ___", etc.), which is a behavioural / system-prompt concern rather than an API-level reasoning concern. The two compound when both are happening, but the fixes are distinct.