Feat: Render the uploaded agent message file #3221 (#9081)

### What problem does this PR solve?

Feat: Render the uploaded agent message file #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-29 10:56:30 +08:00
committed by GitHub
parent 342a04ec8a
commit 7e7619bdc0
6 changed files with 63 additions and 90 deletions

View File

@ -36,8 +36,6 @@ const ChatContainer = () => {
addEventList,
setCurrentMessageId,
currentEventListWithoutMessageById,
clearEventList,
currentMessageId,
} = useCacheChatLog();
const {
handlePressEnter,
@ -76,7 +74,7 @@ const ChatContainer = () => {
useCallback(
async (files, options) => {
const ret = await uploadCanvasFile({ files, options });
appendUploadResponseList(ret.data);
appendUploadResponseList(ret.data, files);
},
[appendUploadResponseList, uploadCanvasFile],
);