fix:workflow and chat bugs (#6584)

* fix:修复判断器 arrayAny 类型无判断条件可选

* fix:系统工具集不显示版本

* fix:修复视频音频自定义文件类型流程开始无文件链接变量

* fix:输入框会转义成markdown

* docs:新增修复
This commit is contained in:
gaga0714
2026-03-20 11:25:45 +08:00
committed by GitHub
parent 7b56c3dd9b
commit ec7a8beba5
9 changed files with 255 additions and 6 deletions
@@ -79,7 +79,11 @@ const HumanContentCard = React.memo(
return (
<Flex flexDirection={'column'} gap={4}>
{files.length > 0 && <FilesBlock files={files} />}
{text && <Markdown source={text} />}
{text && (
<Box fontSize={'inherit'} color={'inherit'} whiteSpace={'pre-wrap'} wordBreak={'break-word'}>
{text}
</Box>
)}
</Flex>
);
},
@@ -46,7 +46,7 @@ const HumanItem = ({ chat }: { chat: UserChatItemType }) => {
>
<Flex flexDirection={'column'} gap={4}>
{files.length > 0 && <FileBlock files={files} />}
{text && <Markdown source={text} />}
{text && <Box whiteSpace={'pre-wrap'} wordBreak={'break-word'}>{text}</Box>}
</Flex>
</Box>
<ChatAvatar type={ChatRoleEnum.Human} src={humanAvatar} />
@@ -371,6 +371,7 @@ const ConditionSelect = ({
valueType === WorkflowIOValueTypeEnum.datasetQuote ||
valueType === WorkflowIOValueTypeEnum.dynamic ||
valueType === WorkflowIOValueTypeEnum.selectApp ||
valueType === WorkflowIOValueTypeEnum.arrayAny ||
valueType === WorkflowIOValueTypeEnum.arrayBoolean ||
valueType === WorkflowIOValueTypeEnum.arrayNumber ||
valueType === WorkflowIOValueTypeEnum.arrayObject ||
@@ -266,7 +266,12 @@ function FileSelectConfig({ chatConfig: { fileSelectConfig }, setAppDetail }: Co
}));
// Dynamic add or delete userFilesInput
const canUploadFiles = e.canSelectFile || e.canSelectImg;
const canUploadFiles =
e.canSelectFile ||
e.canSelectImg ||
e.canSelectVideo ||
e.canSelectAudio ||
e.canSelectCustomFileExtension;
const repeatKey = workflowStartNode.outputs.find((item) => item.key === userFilesInput.key);
if (canUploadFiles) {
!repeatKey &&
@@ -220,10 +220,15 @@ const NodeCard = (props: Props) => {
const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType];
const isLoopNode = node?.flowNodeType === FlowNodeTypeEnum.loop;
const showVersion = useMemo(() => {
// 1. MCP tool & HTTP tool set do not have version
// 1. MCP tool, HTTP tool set and system tool set do not have version
if (
isAppNode &&
(node.toolConfig?.mcpToolSet || node.toolConfig?.mcpTool || node?.toolConfig?.httpToolSet)
(
node.toolConfig?.mcpToolSet ||
node.toolConfig?.mcpTool ||
node?.toolConfig?.httpToolSet ||
node?.toolConfig?.systemToolSet
)
)
return false;
// 2. Team app/System commercial plugin