From b0b378e6e3e629c33e798d13674f2bfb0b95da67 Mon Sep 17 00:00:00 2001 From: Amed Rodriguez Date: Tue, 9 Sep 2025 20:25:27 -0700 Subject: [PATCH] Fix local (working directory) recipes storage (#4588) --- ui/desktop/src/recipe/recipeStorage.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/desktop/src/recipe/recipeStorage.ts b/ui/desktop/src/recipe/recipeStorage.ts index fde07f99..407be482 100644 --- a/ui/desktop/src/recipe/recipeStorage.ts +++ b/ui/desktop/src/recipe/recipeStorage.ts @@ -34,7 +34,13 @@ function parseLastModified(val: string | Date): Date { * Get the storage directory path for recipes */ export function getStorageDirectory(isGlobal: boolean): string { - return isGlobal ? '~/.config/goose/recipes' : '.goose/recipes'; + if (isGlobal) { + return '~/.config/goose/recipes'; + } else { + // For directory recipes, build absolute path using working directory + const workingDir = window.appConfig.get('GOOSE_WORKING_DIR') as string; + return `${workingDir}/.goose/recipes`; + } } /**