summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts2
-rw-r--r--extension/react-app/src/hooks/ContinueGUIClientProtocol.ts2
-rw-r--r--extension/react-app/src/pages/gui.tsx8
3 files changed, 6 insertions, 6 deletions
diff --git a/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts
index 139c9d05..e018c03c 100644
--- a/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts
+++ b/extension/react-app/src/hooks/AbstractContinueGUIClientProtocol.ts
@@ -31,7 +31,7 @@ abstract class AbstractContinueGUIClientProtocol {
abstract selectContextItem(id: string, query: string): void;
- abstract loadSession(session_id: string): void;
+ abstract loadSession(session_id?: string): void;
abstract onReconnectAtSession(session_id: string): void;
}
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
index 6cfbf66a..c2285f6d 100644
--- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
+++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
@@ -47,7 +47,7 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol {
this.connectMessenger(serverUrlWithSessionId, useVscodeMessagePassing);
}
- loadSession(session_id: string): void {
+ loadSession(session_id?: string): void {
this.messenger?.send("load_session", { session_id });
}
diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index d565e64f..dab429b5 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -16,7 +16,7 @@ import {
BookOpenIcon,
ChatBubbleOvalLeftEllipsisIcon,
TrashIcon,
- PlusCircleIcon,
+ PlusIcon,
FolderIcon,
} from "@heroicons/react/24/outline";
import ComboBox from "../components/ComboBox";
@@ -589,11 +589,11 @@ If you already have an LLM deployed on your own infrastructure, or would like to
</HeaderButtonWithText>
<HeaderButtonWithText
onClick={() => {
- client?.sendClear();
+ client?.loadSession(undefined);
}}
- text="Clear"
+ text="New Session"
>
- <PlusCircleIcon width="1.4em" height="1.4em" />
+ <PlusIcon width="1.4em" height="1.4em" />
</HeaderButtonWithText>
<HeaderButtonWithText
onClick={() => {