Skip to content

Adaptive thinking should only be set on supported models #3362

Description

@krissetto

Description

when running the default agent and switching to e.g. Haiku 4.5, if shift-tab has been used to set the reasoning value then all future requests with that set will fail

we should not set adaptive thinking values on models that do not support it, but instead use the regular thinking options

Screencast

Screen.Recording.2026-07-01.at.13.21.39.mov

Expected Behavior

reasoning should be enabled and work properly

Actual Behavior

model failed: error receiving from stream: HTTP 400: invalid_request_error: adaptive thinking is not supported on this model (Request-ID: req_011CcbEvpiV1QW9DZQ7XGRft)

Steps to Reproduce

docker agent -> ctrl+m -> choose e.g. haiku 4.5 -> shift+tab to set a reasoning level -> send message

Docker Agent version

Commit: b611d93

OS & terminal

macOS / Ghostty

Metadata

Metadata

Assignees

Labels

area/modelsLLM model integrations and model providersarea/providers/anthropicFor features/issues/fixes related to the usage of Anthropic modelsarea/tuiFor features/issues/fixes related to the TUI

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions