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
@@ -658,6 +658,41 @@ describe('appData2FlowNodeIO', () => {
expect(fileLinkInput).toBeDefined();
});
it.each([
{
title: 'video selection',
fileSelectConfig: {
canSelectFile: false,
canSelectImg: false,
canSelectVideo: true
}
},
{
title: 'audio selection',
fileSelectConfig: {
canSelectFile: false,
canSelectImg: false,
canSelectAudio: true
}
},
{
title: 'custom file extension selection',
fileSelectConfig: {
canSelectFile: false,
canSelectImg: false,
canSelectCustomFileExtension: true
}
}
])('should include file link input when fileSelectConfig allows $title', ({ fileSelectConfig }) => {
const result = appData2FlowNodeIO({
chatConfig: {
fileSelectConfig
}
});
const fileLinkInput = result.inputs.find((i) => i.key === NodeInputKeyEnum.fileUrlList);
expect(fileLinkInput).toBeDefined();
});
it('should not include file link input when fileSelectConfig disallows both', () => {
const result = appData2FlowNodeIO({
chatConfig: {