From fdaff5df5ccb607edeb1d9d5d9d4ce999ff2116f Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Thu, 17 Apr 2025 20:35:43 -0700 Subject: [PATCH] additional fixes based on comments --- gui/src/pages/gui/Chat.tsx | 1 - gui/src/redux/slices/sessionSlice.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 66d361beb..11017177b 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -277,7 +277,6 @@ export function Chat() { useWebviewListener( "toolCallPartialOutput", async (data) => { - console.log("toolCallPartialOutput", data); // Update tool call output in Redux store dispatch( updateToolCallOutput({ diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 27dc58f2a..7c065a9ae 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -643,13 +643,13 @@ export const sessionSlice = createSlice({ ) => { // Find the tool call with the given ID and update its output const { toolCallId, contextItems } = action.payload; - + // Find the history item containing the tool call const historyItem = state.history.find( - (item) => + (item) => item.toolCallState?.toolCallId === toolCallId ); - + if (historyItem && historyItem.toolCallState) { historyItem.toolCallState.output = contextItems; }