From 55af8c6a0dd3df7dc917f804f64d59a9a01bfcf9 Mon Sep 17 00:00:00 2001 From: yeyan1996 <1996yeyan@gmail.com> Date: Sat, 9 Aug 2025 13:07:37 -0700 Subject: [PATCH] fix: add TODO for tool index handling in PlaybackControls --- frontend/src/components/thread/content/PlaybackControls.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/thread/content/PlaybackControls.tsx b/frontend/src/components/thread/content/PlaybackControls.tsx index ff886d67..184714b9 100644 --- a/frontend/src/components/thread/content/PlaybackControls.tsx +++ b/frontend/src/components/thread/content/PlaybackControls.tsx @@ -275,6 +275,7 @@ export const PlaybackControls = ({ if (currentChunk.isTool && currentIndex === 0) { // For tool calls, check if they should be hidden during streaming if (isToolInitialized) { + // TODO: better to change tool index by uniq tool id setCurrentToolIndex((prev) => prev + 1); } else { setIsToolInitialized(true);