From c43192c80b2cab8860fc533eb8456a14bb76ebc1 Mon Sep 17 00:00:00 2001 From: 0xarcher Date: Sat, 21 Feb 2026 01:22:16 +0800 Subject: [PATCH] fix(agent): pass correct model config to small provider builder (#2236) When building the small model provider, we were incorrectly passing largeModelCfg instead of smallModelCfg to buildProvider. This caused isAnthropicThinking to check the wrong model config, preventing the small model from enabling Anthropic thinking mode even when configured. Fixes #2141 --- internal/agent/coordinator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 5acafb993d2d40860ae1ccf3992dea9c3e1b7980..16ceb21a38669af83261a212b861193ae2e89779 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -508,7 +508,7 @@ func (c *coordinator) buildAgentModels(ctx context.Context, isSubAgent bool) (Mo return Model{}, Model{}, errors.New("large model provider not configured") } - smallProvider, err := c.buildProvider(smallProviderCfg, largeModelCfg, true) + smallProvider, err := c.buildProvider(smallProviderCfg, smallModelCfg, true) if err != nil { return Model{}, Model{}, err }