From ad4acef27f7312e09de66e4b0e6188db7c19cd6b Mon Sep 17 00:00:00 2001 From: gitplus Date: Thu, 10 Jul 2025 13:44:45 +0800 Subject: [PATCH] fix: the key is repeated for the same content --- examples/nextjs/src/components/History.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nextjs/src/components/History.tsx b/examples/nextjs/src/components/History.tsx index 864c5d22..094de944 100644 --- a/examples/nextjs/src/components/History.tsx +++ b/examples/nextjs/src/components/History.tsx @@ -74,7 +74,7 @@ function processItems(items: AgentInputItem[]): ProcessedItem[] { return ''; }) .join('\n') || '⚫︎⚫︎⚫︎', - id: item.id ?? JSON.stringify(item.content), + id: item.id ?? '', }); } } @@ -100,7 +100,7 @@ export function History({ history }: HistoryProps) { ); }