fix: add TODO for tool index handling in PlaybackControls

This commit is contained in:
yeyan1996 2025-08-09 13:07:37 -07:00
parent 176182e2e9
commit 55af8c6a0d
1 changed files with 1 additions and 0 deletions

View File

@ -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);