diff --git a/src/pages/Chat/ChatMessage.tsx b/src/pages/Chat/ChatMessage.tsx index 7a96a48f7..5f373446d 100644 --- a/src/pages/Chat/ChatMessage.tsx +++ b/src/pages/Chat/ChatMessage.tsx @@ -431,8 +431,21 @@ function FileIcon({ mimeType, className }: { mimeType: string; className?: strin } function FileCard({ file }: { file: AttachedFileMeta }) { + const handleOpen = useCallback(() => { + if (file.filePath) { + invokeIpc('shell:openPath', file.filePath); + } + }, [file.filePath]); + return ( -
+

{file.fileName}