From 19060a30faf94454f4d69d01828a33985d07f109 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 6 Aug 2023 15:39:16 -0700 Subject: feat: :construction: create new sessions --- .../react-app/src/hooks/AbstractContinueGUIClientProtocol.ts | 2 +- extension/react-app/src/hooks/ContinueGUIClientProtocol.ts | 2 +- extension/react-app/src/pages/gui.tsx | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'extension/react-app/src') 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 { - client?.sendClear(); + client?.loadSession(undefined); }} - text="Clear" + text="New Session" > - + { -- cgit v1.2.3-70-g09d2