diff --git a/gui/src/pages/gui/ToolCallDiv/index.tsx b/gui/src/pages/gui/ToolCallDiv/index.tsx
index 4d6838f26..745bb78c4 100644
--- a/gui/src/pages/gui/ToolCallDiv/index.tsx
+++ b/gui/src/pages/gui/ToolCallDiv/index.tsx
@@ -1,5 +1,10 @@
-import { CheckIcon, XMarkIcon } from "@heroicons/react/24/outline";
+import {
+ ArrowRightIcon,
+ CheckIcon,
+ XMarkIcon,
+} from "@heroicons/react/24/outline";
import { ToolCall, ToolCallState, ToolStatus } from "core";
+import { vscButtonBackground } from "../../../components";
import Spinner from "../../../components/markdown/StepContainerPreToolbar/Spinner";
import FunctionSpecificToolCallDiv from "./FunctionSpecificToolCallDiv";
import { ThreadDiv } from "./ThreadDiv";
@@ -14,8 +19,9 @@ export function ToolCallDiv(props: ToolCallDivProps) {
switch (state) {
case "generating":
case "calling":
- case "generated":
return ;
+ case "generated":
+ return ;
case "done":
return ;
case "canceled":
diff --git a/gui/src/redux/thunks/callTool.ts b/gui/src/redux/thunks/callTool.ts
index 7a8c56669..6541648f3 100644
--- a/gui/src/redux/thunks/callTool.ts
+++ b/gui/src/redux/thunks/callTool.ts
@@ -1,6 +1,6 @@
import { createAsyncThunk } from "@reduxjs/toolkit";
import { selectCurrentToolCall } from "../selectors/selectCurrentToolCall";
-import { setToolCallOutput } from "../slices/stateSlice";
+import { setCalling, setToolCallOutput } from "../slices/stateSlice";
import { ThunkApiType } from "../store";
import { streamResponseAfterToolCall } from "./streamResponseAfterToolCall";
@@ -19,6 +19,8 @@ export const callTool = createAsyncThunk(
return;
}
+ dispatch(setCalling());
+
const result = await extra.ideMessenger.request("tools/call", {
toolCall: toolCallState.toolCall,
});
@@ -26,7 +28,7 @@ export const callTool = createAsyncThunk(
if (result.status === "success") {
const contextItems = result.content.contextItems;
dispatch(setToolCallOutput(contextItems));
-
+
// Send to the LLM to continue the conversation
dispatch(
streamResponseAfterToolCall({