diff --git a/web/src/views/Workflow/components/Editor/plugin/AutocompletePlugin.tsx b/web/src/views/Workflow/components/Editor/plugin/AutocompletePlugin.tsx
index a0640162..eaa5901d 100644
--- a/web/src/views/Workflow/components/Editor/plugin/AutocompletePlugin.tsx
+++ b/web/src/views/Workflow/components/Editor/plugin/AutocompletePlugin.tsx
@@ -2,11 +2,12 @@
* @Author: ZhaoYing
* @Date: 2025-12-23 16:22:51
* @Last Modified by: ZhaoYing
- * @Last Modified time: 2026-03-03 10:12:33
+ * @Last Modified time: 2026-03-25 15:53:57
*/
import { useEffect, useState, useRef, type FC } from 'react';
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
import { $getSelection, $isRangeSelection, $isTextNode, COMMAND_PRIORITY_HIGH, KEY_ENTER_COMMAND, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ESCAPE_COMMAND } from 'lexical';
+import { Space } from 'antd';
import { INSERT_VARIABLE_COMMAND, CLOSE_AUTOCOMPLETE_COMMAND } from '../commands';
import type { NodeProperties } from '../../../types'
@@ -317,26 +318,12 @@ const AutocompletePlugin: FC<{ options: Suggestion[], enableJinja2?: boolean }>
onClick={() => !option.disabled && insertMention(option)}
onMouseEnter={() => setSelectedIndex(globalIndex)}
>
-
-
- {option.isContext ? '📄' :
- option.type === 'system' ? 'x' : 'x'}
-
- {option.label}
-
+
+ {option.isContext ? '📄' : `{x}`}
+ {option.label}
+
{option.dataType && (
-
+
{option.dataType}
)}
diff --git a/web/src/views/Workflow/components/Properties/VariableSelect.tsx b/web/src/views/Workflow/components/Properties/VariableSelect.tsx
index 469edf41..a88627df 100644
--- a/web/src/views/Workflow/components/Properties/VariableSelect.tsx
+++ b/web/src/views/Workflow/components/Properties/VariableSelect.tsx
@@ -1,12 +1,12 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-03 15:40:13
- * @Last Modified by: ZhaoYing
- * @Last Modified time: 2026-02-03 15:40:13
+ * @Last Modified by: ZhaoYing
+ * @Last Modified time: 2026-03-25 15:52:24
*/
import { type FC } from 'react'
import clsx from 'clsx';
-import { Select, type SelectProps, Flex } from 'antd'
+import { Select, type SelectProps, Flex, Space } from 'antd'
import type { Suggestion } from '../Editor/plugin/AutocompletePlugin'
type LabelRender = SelectProps['labelRender'];
@@ -110,7 +110,13 @@ const VariableSelect: FC = ({
const groupedOptions = Object.entries(groupedSuggestions).map(([_nodeId, suggestions]) => ({
label: suggestions[0].nodeData.name,
options: suggestions.map(s => ({
- label: {s.label} {s.dataType},
+ label:
+
+ {`{x}`}
+ {s.label}
+
+ {s.dataType}
+ ,
value: `{{${s.value}}}`
}))
}));