diff --git a/gui/src/pages/gui/chat-tests/ParallelToolCalls.test.tsx b/gui/src/pages/gui/chat-tests/ParallelToolCalls.test.tsx index 10c16f492..cb8ae608d 100644 --- a/gui/src/pages/gui/chat-tests/ParallelToolCalls.test.tsx +++ b/gui/src/pages/gui/chat-tests/ParallelToolCalls.test.tsx @@ -206,7 +206,10 @@ describe("Parallel Tool Calls", () => { // Verify we have pending tool calls const { findCurrentToolCallsByStatus } = await import("../../../redux/util"); + const allToolCalls = findCurrentToolCallsByStatus(state.session.history, "generating"); const pendingToolCalls = findCurrentToolCallsByStatus(state.session.history, "generated"); + + expect(pendingToolCalls).toHaveLength(2); // Note: ResponseActions should be hidden by the hasPendingToolCalls condition in StepContainer diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 023b36c9b..5e368f32d 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -583,6 +583,7 @@ export const sessionSlice = createSlice({ action.payload.toolCallId, ); + if (toolCallState) { toolCallState.status = "generated"; diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 2d5806895..8f2da7733 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -3,7 +3,7 @@ import { LLMFullCompletionOptions } from "core"; import { modelSupportsTools } from "core/llm/autodetect"; import { ToCoreProtocol } from "core/protocol"; import { selectActiveTools } from "../selectors/selectActiveTools"; -import { selectCurrentToolCall } from "../selectors/selectCurrentToolCall"; +import { selectCurrentToolCalls } from "../selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../slices/configSlice"; import { abortStream,