From 676326cfd309baedf619059c6482de6dfcb9385c Mon Sep 17 00:00:00 2001 From: techjarves Date: Thu, 25 Jun 2026 19:00:33 +0530 Subject: [PATCH] feat: add portable server script and frontend components for model management and chat interface --- app/frontend/src/components/ModelManager.jsx | 6 ++++++ app/frontend/src/components/TextChat.jsx | 1 - scripts/server/serve.cjs | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/frontend/src/components/ModelManager.jsx b/app/frontend/src/components/ModelManager.jsx index ed1be80..72a97c7 100644 --- a/app/frontend/src/components/ModelManager.jsx +++ b/app/frontend/src/components/ModelManager.jsx @@ -1308,6 +1308,12 @@ function ModelManager({ } }; + const handleCancelImport = () => { + if (importAbortController) { + importAbortController.abort(); + } + }; + const handleImportFile = (e) => { const file = e.target.files[0]; if (file) { diff --git a/app/frontend/src/components/TextChat.jsx b/app/frontend/src/components/TextChat.jsx index 7759dfe..ea97c0e 100644 --- a/app/frontend/src/components/TextChat.jsx +++ b/app/frontend/src/components/TextChat.jsx @@ -917,7 +917,6 @@ function TextChat({ )} - {isBusy && !loadingModel && } {selectedModel && (!status.ready || status.settings?.model !== selectedModel) && !loadingModel && (