From 9d21b67ef36ec0ce5fb5c5b42322bc2e67238088 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 2 Sep 2025 08:50:52 -0700 Subject: [PATCH] fix: don't fail on non-fatal errors --- extensions/cli/src/configLoader.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/cli/src/configLoader.ts b/extensions/cli/src/configLoader.ts index 79e3cc9f3..1f0f998cc 100644 --- a/extensions/cli/src/configLoader.ts +++ b/extensions/cli/src/configLoader.ts @@ -373,8 +373,9 @@ async function loadAssistantSlug( }); const result = resp.configResult; - if (result.errors?.length || !result.config) { - throw new Error(result.errors?.join("\n") ?? "Failed to load assistant."); + const errors = result.errors; + if (errors?.some((e: any) => e.fatal)) { + throw new Error(errors.map((e: any) => e.message).join("\n") ?? "Failed to load assistant."); } return result.config as AssistantUnrolled;