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; }