diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 3e71bd95d6..4995c67e61 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1477,8 +1477,8 @@ chatTitle.set(chatContent.title); - params = chatContent?.params ?? {}; - chatFiles = chatContent?.files ?? []; + params = structuredClone(chatContent?.params ?? {}); + chatFiles = structuredClone(chatContent?.files ?? []); // Load tasks from chat-level DB field chatTasks = chat?.tasks ?? [];