diff --git a/.continueignore b/.continueignore
index 7e0d0c115..79e924012 100644
--- a/.continueignore
+++ b/.continueignore
@@ -4,4 +4,5 @@ docs/docs/languages
.idea/
.vscode/
.archive/
-**/*.scm
\ No newline at end of file
+**/*.scm
+**/*.diff
\ No newline at end of file
diff --git a/gui/src/components/StepContainer/StepContainer.tsx b/gui/src/components/StepContainer/StepContainer.tsx
index d3adcb388..593fef732 100644
--- a/gui/src/components/StepContainer/StepContainer.tsx
+++ b/gui/src/components/StepContainer/StepContainer.tsx
@@ -77,10 +77,7 @@ export default function StepContainer(props: StepContainerProps) {
return (
{uiConfig?.displayRawMarkdown ? (
diff --git a/gui/src/hooks/useChatHandler.ts b/gui/src/hooks/useChatHandler.ts
index 45b391233..8fcbb2749 100644
--- a/gui/src/hooks/useChatHandler.ts
+++ b/gui/src/hooks/useChatHandler.ts
@@ -29,6 +29,7 @@ import { defaultModelSelector } from "../redux/selectors/modelSelectors";
import {
abortStream,
acceptToolCall,
+ addContextItemsAtIndex,
addPromptCompletionPair,
clearLastEmptyResponse,
initNewActiveMessage,
@@ -398,6 +399,18 @@ function useChatHandler(dispatch: Dispatch, ideMessenger: IIdeMessenger) {
};
dispatch(streamUpdate(newMessage));
+ dispatch(
+ addContextItemsAtIndex({
+ index: history.length,
+ contextItems: toolOutput.map((contextItem) => ({
+ ...contextItem,
+ id: {
+ providerTitle: "toolCall",
+ itemId: toolCallId,
+ },
+ })),
+ }),
+ );
dispatch(acceptToolCall());
activeRef.current = true;
dispatch(setActive());
diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx
index 47135f7d5..a858c09a8 100644
--- a/gui/src/pages/gui/Chat.tsx
+++ b/gui/src/pages/gui/Chat.tsx
@@ -6,16 +6,8 @@ import {
} from "@heroicons/react/24/outline";
import { JSONContent } from "@tiptap/react";
import { InputModifiers } from "core";
-import { renderChatMessage } from "core/util/messageContent";
import { usePostHog } from "posthog-js/react";
-import {
- Fragment,
- useCallback,
- useContext,
- useEffect,
- useRef,
- useState,
-} from "react";
+import { useCallback, useContext, useEffect, useRef, useState } from "react";
import { ErrorBoundary } from "react-error-boundary";
import { useDispatch, useSelector } from "react-redux";
import styled from "styled-components";
@@ -28,6 +20,7 @@ import {
import { ChatScrollAnchor } from "../../components/ChatScrollAnchor";
import { useFindWidget } from "../../components/find/FindWidget";
import TimelineItem from "../../components/gui/TimelineItem";
+import ChatIndexingPeeks from "../../components/indexing/ChatIndexingPeeks";
import ContinueInputBox from "../../components/mainInput/ContinueInputBox";
import { NewSessionButton } from "../../components/mainInput/NewSessionButton";
import { TutorialCard } from "../../components/mainInput/TutorialCard";
@@ -60,11 +53,10 @@ import {
} from "../../util";
import { FREE_TRIAL_LIMIT_REQUESTS } from "../../util/freeTrial";
import { getLocalStorage, setLocalStorage } from "../../util/localStorage";
+import ConfigErrorIndicator from "./ConfigError";
import { ToolCallDiv } from "./ToolCallDiv";
import { ToolCallButtons } from "./ToolCallDiv/ToolCallButtonsDiv";
import ToolOutput from "./ToolCallDiv/ToolOutput";
-import ConfigErrorIndicator from "./ConfigError";
-import ChatIndexingPeeks from "../../components/indexing/ChatIndexingPeeks";
const StopButton = styled.div`
background-color: ${vscBackground};
@@ -332,7 +324,12 @@ export function Chat() {
>
{highlights}
{state.history.map((item, index: number) => (
-
+
{
@@ -351,7 +348,7 @@ export function Chat() {
/>
) : item.message.role === "tool" ? (
) : item.message.role === "assistant" &&
@@ -401,7 +398,7 @@ export function Chat() {
)}
-
+
))}
);