mirror of https://github.com/kortix-ai/suna.git
fix: add TODO for tool index handling in PlaybackControls
This commit is contained in:
parent
176182e2e9
commit
55af8c6a0d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue