From d72a1f83b1d4a333141c706b99807581061d69e2 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 21 Jan 2026 10:46:12 -0300 Subject: [PATCH] fix: show enable thinking if model can reason Signed-off-by: Carlos Alexandro Becker --- internal/tui/components/dialogs/commands/commands.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/tui/components/dialogs/commands/commands.go b/internal/tui/components/dialogs/commands/commands.go index cde5b203ca985f81c390d02725ef04d11a5cd518..8ebd976a0b31e0251fed3561355e0e66ecd3ade5 100644 --- a/internal/tui/components/dialogs/commands/commands.go +++ b/internal/tui/components/dialogs/commands/commands.go @@ -10,10 +10,8 @@ import ( "charm.land/bubbles/v2/key" tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/charmbracelet/catwalk/pkg/catwalk" "github.com/charmbracelet/crush/internal/agent" - "github.com/charmbracelet/crush/internal/agent/hyper" "github.com/charmbracelet/crush/internal/agent/tools/mcp" "github.com/charmbracelet/crush/internal/config" "github.com/charmbracelet/crush/internal/csync" @@ -363,8 +361,8 @@ func (c *commandDialogCmp) defaultCommands() []Command { if providerCfg != nil && model != nil && model.CanReason { selectedModel := cfg.Models[agentCfg.Model] - // Anthropic models: thinking toggle - if providerCfg.Type == catwalk.TypeAnthropic || providerCfg.Type == catwalk.Type(hyper.Name) { + // Anthropic-style thinking toggle: Anthropic or Hyper only. + if model.CanReason && len(model.ReasoningLevels) == 0 { status := "Enable" if selectedModel.Think { status = "Disable"