diff --git a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx index 70f8f6d62e..182e55370b 100644 --- a/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx +++ b/web/app/components/workflow/nodes/_base/components/prompt/editor.tsx @@ -58,7 +58,6 @@ const Editor: FC = ({ const { eventEmitter } = useEventEmitterContextContext() const isShowHistory = !isChatModel && isChatApp - const isShowQuery = isShowHistory const ref = useRef(null) const { @@ -155,8 +154,8 @@ const Editor: FC = ({ }, }} queryBlock={{ - show: justVar ? false : isShowQuery, - selectable: !hasSetBlockStatus?.query, + show: false, // use [sys.query] instead of query block + selectable: false, }} workflowVariableBlock={{ show: true, diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsx index ddd0181fa2..748dc8673b 100644 --- a/web/app/components/workflow/nodes/llm/panel.tsx +++ b/web/app/components/workflow/nodes/llm/panel.tsx @@ -19,7 +19,6 @@ import ResultPanel from '@/app/components/workflow/run/result-panel' import TooltipPlus from '@/app/components/base/tooltip-plus' import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general' import Editor from '@/app/components/workflow/nodes/_base/components/prompt/editor' -import { QUERY_PLACEHOLDER_TEXT } from '@/app/components/base/prompt-editor/constants' const i18nPrefix = 'workflow.nodes.llm' const Panel: FC> = ({ @@ -190,7 +189,7 @@ const Panel: FC> = ({ } - value={QUERY_PLACEHOLDER_TEXT} + value={'{{#sys.query#}}'} onChange={() => { }} readOnly isShowContext={false}