diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d84f503da..6d1f77e49 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -176,14 +176,14 @@ } } else if (type === 'citation') { if (data?.type === 'code_execution') { - // Code execution; update existing code execution by UUID, + // Code execution; update existing code execution by ID, // otherwise append. if (!message?.code_executions) { message.code_executions = []; } let is_update = false; for (let i = 0; i < message.code_executions.length; i++) { - if (message.code_executions[i].uuid === data.uuid) { + if (message.code_executions[i].id === data.id) { message.code_executions[i] = data; is_update = true; break; diff --git a/src/lib/components/chat/Messages/CodeExecutionModal.svelte b/src/lib/components/chat/Messages/CodeExecutionModal.svelte index 86e934d78..6fd23dc83 100644 --- a/src/lib/components/chat/Messages/CodeExecutionModal.svelte +++ b/src/lib/components/chat/Messages/CodeExecutionModal.svelte @@ -57,7 +57,7 @@