From 49effca35d7928bfac7b3b169aac3f7f7e4b082a Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 19 Jan 2026 18:40:42 +0800 Subject: [PATCH] fix: auto default --- .../tool-selector/reasoning-config-form.tsx | 2 +- .../skill-editor/plugins/tool-block/tool-picker-block.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx index 346cb06f93..bf561ad5f8 100644 --- a/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx +++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx @@ -153,7 +153,7 @@ const ReasoningConfigForm: React.FC = ({ placeholder, options, } = schema - const canUseAuto = type !== FormTypeEnum.modelSelector + const canUseAuto = ![FormTypeEnum.modelSelector, FormTypeEnum.appSelector].includes(type) const auto = canUseAuto ? value[variable]?.auto : 0 const tooltipContent = (tooltip && ( = ({ scope = 'all' }) => { const fields = schemas.map(schema => ({ id: schema.variable, value: schema.default ?? null, - auto: ![FormTypeEnum.modelSelector, FormTypeEnum.appSelector].includes(schema.type as FormTypeEnum), // llm can not determine auto for these types + auto: schema.form === 'llm', })) nextTools[configId] = { type: tool.provider_type, // === CollectionType.mcp ? 'mcp' : 'builtin'