From f7fc1b83f2fb67caaaeed41e8df9381d08764272 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Thu, 5 Jun 2025 11:53:19 -0700 Subject: [PATCH] remove NEED_ERROR_PROPAGATION, pass asConfigResult as part of the option instead --- core/config/yaml/loadYaml.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index b8cbf1938..68f849aaf 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -118,7 +118,6 @@ async function loadConfigYaml(options: { // ); // This is how we allow use of blocks locally - const NEED_ERROR_PROPAGATION = true; const unrollResult = await unrollAssistant( packageIdentifier, new RegistryClient({ @@ -138,20 +137,21 @@ async function loadConfigYaml(options: { ), renderSecrets: true, injectBlocks: allLocalBlocks, + asConfigResult: true }, - NEED_ERROR_PROPAGATION, ); const errors: ConfigValidationError[] = []; - let config = overrideConfigYaml ?? unrollResult.config; + const config = overrideConfigYaml ?? unrollResult.config; + if (config) { isAssistantUnrolledNonNullable(config) ? errors.push(...validateConfigYaml(config)) : errors.push({ - fatal: true, - message: "Assistant includes blocks that don't exist", - }); + fatal: true, + message: "Assistant includes blocks that don't exist", + }); } if (unrollResult.errors) {