From 245abaaf16a2cedb98c189e0f922bf50b9ec1105 Mon Sep 17 00:00:00 2001 From: srogmann Date: Fri, 18 Jul 2025 23:27:04 +0200 Subject: [PATCH] webui: add missing messages in export (#13552) --- tools/server/webui/src/components/Sidebar.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/server/webui/src/components/Sidebar.tsx b/tools/server/webui/src/components/Sidebar.tsx index b52a8df03c969..f5b8cb8504086 100644 --- a/tools/server/webui/src/components/Sidebar.tsx +++ b/tools/server/webui/src/components/Sidebar.tsx @@ -149,14 +149,16 @@ export default function Sidebar() { navigate('/'); } }} - onDownload={() => { + onDownload={async () => { if (isGenerating(conv.id)) { toast.error( 'Cannot download conversation while generating' ); return; } - const conversationJson = JSON.stringify(conv, null, 2); + const msgs = await StorageUtils.getMessages(conv.id); + const dict = { conv: conv, messages: msgs }; + const conversationJson = JSON.stringify(dict, null, 2); const blob = new Blob([conversationJson], { type: 'application/json', });