From 17d225b7b78c41f1a3f9b9cb2414ff7d3516836d Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 4 Mar 2025 14:09:55 +0100 Subject: [PATCH] Do not reuse message IDs --- src/components/thread/messages/human.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/thread/messages/human.tsx b/src/components/thread/messages/human.tsx index e20f405..3e9393b 100644 --- a/src/components/thread/messages/human.tsx +++ b/src/components/thread/messages/human.tsx @@ -49,17 +49,8 @@ export function HumanMessage({ const handleSubmitEdit = () => { setIsEditing(false); thread.submit( - { - messages: [ - { - ...message, - content: value, - }, - ], - }, - { - checkpoint: parentCheckpoint, - }, + { messages: [{ type: "human", content: value }] }, + { checkpoint: parentCheckpoint }, ); };