fix: restore download button when file type is selected in agent message (#17184)

This commit is contained in:
euvre
2026-07-22 19:21:17 +08:00
committed by GitHub
parent 1aaa200471
commit 2f7dc60337
4 changed files with 21 additions and 30 deletions

View File

@@ -1,7 +1,10 @@
import message from '@/components/ui/message';
import { Authorization } from '@/constants/authorization';
import { ResponseType } from '@/interfaces/database/base';
import { IReferenceObject } from '@/interfaces/database/chat';
import {
IDocumentDownloadInfo,
IReferenceObject,
} from '@/interfaces/database/chat';
import { BeginQuery } from '@/pages/agent/interface';
import { getAuthorization } from '@/utils/authorization-util';
import { EventSourceParserStream } from 'eventsource-parser/stream';
@@ -59,7 +62,9 @@ export interface IMessageData {
}
export interface IMessageEndData {
reference: IReferenceObject;
reference?: IReferenceObject;
attachment?: IAttachment;
downloads?: IDocumentDownloadInfo[];
}
export interface ILogData extends INodeData {