@@ -772,19 +772,8 @@ func (c *coordinator) isAnthropicThinking(model config.SelectedModel) bool {
772 if model.Think {
772 if model.Think {
773 return true
773 return true
776− if model.ProviderOptions == nil {
780 opts, err := anthropic.ParseOptions(model.ProviderOptions)
775 opts, err := anthropic.ParseOptions(model.ProviderOptions)
784− if opts.Thinking != nil {
776+ return err == nil && opts.Thinking != nil
790func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model config.SelectedModel, isSubAgent bool) (fantasy.Provider, error) {
779func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model config.SelectedModel, isSubAgent bool) (fantasy.Provider, error) {