on main help sign in
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

commitc43192c80b2cab8860fc533eb8456a14bb76ebc1 author0xarcher <coder.archer@gmail.com> dateSat 21 Feb 2026, 01:22 (8 months ago) parent9e31414
1 file changed+1−1
internal/agent/coordinator.go+1−1
internal/agent/coordinator.go+1−1
@@ -508,7 +508,7 @@ func (c *coordinator) buildAgentModels(ctx context.Context, isSubAgent bool) (Mo
508508 return Model{}, Model{}, errors.New("large model provider not configured")
509509 }
510510
511− smallProvider, err := c.buildProvider(smallProviderCfg, largeModelCfg, true)
511+ smallProvider, err := c.buildProvider(smallProviderCfg, smallModelCfg, true)
512512 if err != nil {
513513 return Model{}, Model{}, err
514514 }