From 20a069e87e7b62f94150240071193676d423f6ca Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:51:50 +0530 Subject: [PATCH 1/2] fix: show error for blank inputs when using hub blocks in local config --- packages/config-yaml/src/load/unroll.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/config-yaml/src/load/unroll.ts b/packages/config-yaml/src/load/unroll.ts index 9fae9d17b..fd0300a22 100644 --- a/packages/config-yaml/src/load/unroll.ts +++ b/packages/config-yaml/src/load/unroll.ts @@ -740,6 +740,21 @@ export async function resolveBlock( secrets: extractFQSNMap(rawYaml, [id]), }); + // Check for unresolved input template variables (missing required inputs) + const unresolvedInputs = getTemplateVariables(templatedYaml).filter((v) => + v.startsWith("inputs."), + ); + if (unresolvedInputs.length > 0) { + const missingInputNames = unresolvedInputs.map((v) => + v.replace("inputs.", ""), + ); + const blockName = packageIdentifierToShorthandSlug(id); + throw new Error( + `Missing required input(s) for block "${blockName}": ${missingInputNames.join(", ")}. ` + + `Please provide these values in the "with" block.`, + ); + } + // Add source slug for mcp servers const parsed = parseMarkdownRuleOrAssistantUnrolled(templatedYaml, id); if ( From 1a9ea0a29c5f82d4919cb1291fc40b758e4e807e Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:53:05 +0530 Subject: [PATCH 2/2] change error name to use config.yaml instead of config.json --- core/llm/llms/Anthropic.ts | 2 +- core/llm/llms/Anthropic.vitest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 35e9845ed..fb7d7f8c6 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -407,7 +407,7 @@ class Anthropic extends BaseLLM { ): AsyncGenerator { if (!this.apiKey || this.apiKey === "") { throw new Error( - "Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.", + "Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.", ); } diff --git a/core/llm/llms/Anthropic.vitest.ts b/core/llm/llms/Anthropic.vitest.ts index 07915a93a..d01d36104 100644 --- a/core/llm/llms/Anthropic.vitest.ts +++ b/core/llm/llms/Anthropic.vitest.ts @@ -488,7 +488,7 @@ describe("Anthropic", () => { }, }), ).rejects.toThrow( - "Request not sent. You have an Anthropic model configured in your config.json, but the API key is not set.", + "Request not sent. You have an Anthropic model configured in your config.yaml, but the API key is not set.", ); }); });