Fix local (working directory) recipes storage (#4588)

This commit is contained in:
Amed Rodriguez
2025-09-09 20:25:27 -07:00
committed by GitHub
parent aa86e14d61
commit b0b378e6e3
+7 -1
View File
@@ -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`;
}
}
/**