From e2d242d986bc1b15a4f37b548bfb4dd0f467a85f Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Wed, 5 Nov 2025 11:13:56 -0500 Subject: [PATCH] Actually save --- crates/goose-server/src/routes/goose_apps.rs | 4 ---- ui/desktop/src/components/apps/GooseAppEditor.tsx | 7 ++++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/goose-server/src/routes/goose_apps.rs b/crates/goose-server/src/routes/goose_apps.rs index ffc10f2f33..f2a326bc80 100644 --- a/crates/goose-server/src/routes/goose_apps.rs +++ b/crates/goose-server/src/routes/goose_apps.rs @@ -250,10 +250,6 @@ async fn store_app( ) -> Result, ErrorResponse> { let manager = GooseAppsManager::new()?; - if !manager.app_exists(&name) { - return Err(ErrorResponse::internal(format!("App '{}' not found", name))); - } - manager.update_app(&request.app)?; Ok(Json(SuccessResponse { diff --git a/ui/desktop/src/components/apps/GooseAppEditor.tsx b/ui/desktop/src/components/apps/GooseAppEditor.tsx index 0c72673074..134058d8bd 100644 --- a/ui/desktop/src/components/apps/GooseAppEditor.tsx +++ b/ui/desktop/src/components/apps/GooseAppEditor.tsx @@ -3,6 +3,7 @@ import { MainPanelLayout } from '../Layout/MainPanelLayout'; import { Button } from '../ui/button'; import { Input } from '../ui/input'; import { GooseApp, iterateApp, storeApp } from '../../api'; +import { errorMessage } from '../../utils/conversionUtils'; interface GooseAppEditorProps { app?: GooseApp; @@ -128,10 +129,10 @@ export default function GooseAppEditor({ app, onReturn }: GooseAppEditorProps) { }, }, }); - } catch (_e) { - console.log(_e); + onReturn(); + } catch (e) { + window.alert('Failed to save:' + errorMessage(e)); } - onReturn(); }; return (