Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix array-only filtering in List Operator picker; remove file children fallback and align child types. (#26240)
Woodeab6f6540924
diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.tsindex d3621d50509..10919e198b0 100644--- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts+++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts@@ -42,6 +42,7 @@ import type { RAGPipelineVariable } from '@/models/pipeline'import {AGENT_OUTPUT_STRUCT,+ FILE_STRUCT,HTTP_REQUEST_OUTPUT_STRUCT,KNOWLEDGE_RETRIEVAL_OUTPUT_STRUCT,LLM_OUTPUT_STRUCT,@@ -138,6 +139,10 @@ export const varTypeToStructType = (type: VarType): Type => {[VarType.boolean]: Type.boolean,[VarType.object]: Type.object,[VarType.array]: Type.array,+ [VarType.arrayString]: Type.array,+ [VarType.arrayNumber]: Type.array,+ [VarType.arrayObject]: Type.array,+ [VarType.arrayFile]: Type.array,} as any)[type] || Type.string)@@ -282,15 +287,6 @@ const findExceptVarInObject = (children: filteredObj.children,}})-- if (isFile && Array.isArray(childrenResult)) {- if (childrenResult.length === 0) {- childrenResult = OUTPUT_FILE_SUB_VARIABLES.map(key => ({- variable: key,- type: key === 'size' ? VarType.number : VarType.string,- }))- }- }}else {childrenResult = []@@ -586,17 +582,15 @@ const formatItem = (variable: outputKey,type:output.type === 'array'- ? (`Array[${- output.items?.type- ? output.items.type.slice(0, 1).toLocaleUpperCase()- + output.items.type.slice(1)- : 'Unknown'+ ? (`Array[${output.items?.type+ ? output.items.type.slice(0, 1).toLocaleUpperCase()+ + output.items.type.slice(1)+ : 'Unknown'}]` as VarType)- : (`${- output.type- ? output.type.slice(0, 1).toLocaleUpperCase()- + output.type.slice(1)- : 'Unknown'+ : (`${output.type+ ? output.type.slice(0, 1).toLocaleUpperCase()+ + output.type.slice(1)+ : 'Unknown'}` as VarType),})},@@ -690,9 +684,10 @@ const formatItem = (const children = (() => {if (isFile) {return OUTPUT_FILE_SUB_VARIABLES.map((key) => {+ const def = FILE_STRUCT.find(c => c.variable === key)return {variable: key,- type: key === 'size' ? VarType.number : VarType.string,+ type: def?.type || VarType.string,}})}@@ -714,9 +709,10 @@ const formatItem = (if (isFile) {return {children: OUTPUT_FILE_SUB_VARIABLES.map((key) => {+ const def = FILE_STRUCT.find(c => c.variable === key)return {variable: key,- type: key === 'size' ? VarType.number : VarType.string,+ type: def?.type || VarType.string,}}),}diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsxindex 9b6ade246c5..614d01a11e3 100644--- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx+++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx@@ -18,7 +18,6 @@ import { Type } from '../../../llm/types'import PickerStructurePanel from '@/app/components/workflow/nodes/_base/components/variable/object-child-tree-panel/picker'import { isSpecialVar, varTypeToStructType } from './utils'import type { Field } from '@/app/components/workflow/nodes/llm/types'-import { FILE_STRUCT } from '@/app/components/workflow/constants'import { noop } from 'lodash-es'import { CodeAssistant, MagicEdit } from '@/app/components/base/icons/src/vender/line/general'import ManageInputField from './manage-input-field'@@ -106,8 +105,9 @@ const Item: FC<ItemProps> = ({const objStructuredOutput: StructuredOutput | null = useMemo(() => {if (!isObj) return null- const properties: Record<string, Field> = {};- (isFile ? FILE_STRUCT : (itemData.children as Var[])).forEach((c) => {+ const properties: Record<string, Field> = {}+ const childrenVars = (itemData.children as Var[]) || []+ childrenVars.forEach((c) => {properties[c.variable] = {type: varTypeToStructType(c.type),}@@ -120,7 +120,7 @@ const Item: FC<ItemProps> = ({additionalProperties: false,},}- }, [isFile, isObj, itemData.children])+ }, [isObj, itemData.children])const structuredOutput = (() => {if (isStructureOutput)@@ -448,4 +448,5 @@ const VarReferenceVars: FC<Props> = ({</>)}+export default React.memo(VarReferenceVars)diff --git a/web/app/components/workflow/nodes/list-operator/panel.tsx b/web/app/components/workflow/nodes/list-operator/panel.tsxindex 9a89629f095..e76befcac0f 100644--- a/web/app/components/workflow/nodes/list-operator/panel.tsx+++ b/web/app/components/workflow/nodes/list-operator/panel.tsx@@ -55,6 +55,7 @@ const Panel: FC<NodePanelProps<ListFilterNodeType>> = ({value={inputs.variable || []}onChange={handleVarChanges}filterVar={filterVar}+ isSupportFileVar={false}typePlaceHolder='Array'/></Field>