Repository navigation
Open
Labels
area: config-ssotWave 0 · cluster R — Config, paths & SSOTWave 0 · cluster R — Config, paths & SSOTbackendbugSomething isn't workingSomething isn't workingphase:M1.4Wizard and SLM: choose a mode, apply it, default models workWizard and SLM: choose a mode, apply it, default models workpriority: high
Description
Summary
A user who turns thinking on for a chat served by hosted Claude gets a plain reply with no thinking, and nothing tells them. The preference is captured and turned into request kwargs, then never reaches the Anthropic SDK request.
Found while reviewing #20912.
Trace (verified against origin/main)
- Capture:
autobot-backend/api/chat.py:1514-1519readsthinking_mode_enabledandthinking_budget_tokensfrom the request intocontext. - Compute:
autobot-backend/chat_workflow/manager.py:2394callsbuild_reasoning_api_kwargs(ctx.context, ctx.selected_model). That function (autobot-backend/chat_workflow/reasoning_kwargs.py:60) returns_thinking_kwargs(budget)whenthinking_mode_enabledis set and"claude"is in the model name. - Local payload:
autobot-backend/chat_workflow/manager.py:1991runspayload.update(api_kwargs). The payload is built atmanager.py:2092and posted to the local Ollama-style endpoint, not to the Anthropic SDK. - Failover:
autobot-backend/chat_workflow/llm_failover.py:25documents thatapi_kwargsis not carried to the backup request. - Hosted route: the trace found no route into the Anthropic SDK other than
LLMRequest.metadata["api_kwargs"]. Atautobot-backend/api/chat.py:613-614, that metadata is set to{"reasoning_effort": ...}only. The thinking fields are not added there. (api/chat.py:602is the docstring that mentions the mechanism; the assignment is at 614.)
Net effect: the thinking kwargs are built, then dropped before any hosted-Claude request.
Impact
- A user who enables thinking for a hosted-Claude chat gets a non-thinking reply.
- Nothing reports the drop. The
[#8993] Thinking mode enabledlog inreasoning_kwargs.pyfires when the kwargs are built, before the drop, so the logs say thinking is on.
Acceptance criteria
- The thinking preferences reach the Anthropic SDK request, decided through the single SSOT thinking predicate
autobot_shared/ssot_claude_models.requires_adaptive_thinking: 5.x models get adaptive thinking, pre-4.6 models get a budget. Note: on origin/main this symbol and module do not exist (0 matches forrequires_adaptive_thinkingandssot_claude_models), so this criterion also requires creating the predicate inautobot_shared/. - The failover path carries the thinking preferences too, or
llm_failover.pydocuments why not. - A test asserts the final SDK kwargs for a chat with thinking on.
Related
- bug(models): pinned Claude model IDs are a generation stale and repeated outside the SSOT in code, config and docs #20884 (same milestone and phase; Claude model-ID SSOT)
- fix(models): one Claude model-ID SSOT, every consumer reads it, and a ratchet guards the class (#20884) #20912 (PR where this was found)
Parent
None. No fitting umbrella found among open issues.
Metadata
Metadata
Assignees
Labels
area: config-ssotWave 0 · cluster R — Config, paths & SSOTWave 0 · cluster R — Config, paths & SSOTbackendbugSomething isn't workingSomething isn't workingphase:M1.4Wizard and SLM: choose a mode, apply it, default models workWizard and SLM: choose a mode, apply it, default models workpriority: high
Activity
github-actions commentedon Nov 6, 2026
needs-structurecleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).mrveiss commentedon Nov 6, 2026
Structure set per maintainer decision (2026-11-06): milestone M1, phase:M1.4, parent #19739.