diff --git a/frontend/src/app/chat/page.tsx b/frontend/src/app/chat/page.tsx index 8ec9d28b..87bcba97 100644 --- a/frontend/src/app/chat/page.tsx +++ b/frontend/src/app/chat/page.tsx @@ -508,7 +508,7 @@ function ChatPage() { console.log("Tool call done with results:", chunk.item) // Find existing function call by ID, or by name/type if ID not available - let functionCall = currentFunctionCalls.find(fc => + const functionCall = currentFunctionCalls.find(fc => fc.id === chunk.item.id || (fc.name === chunk.item.tool_name) || (fc.name === chunk.item.name) ||