Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(#6712 PR 4b): engineSchemaInput reads the per-source pack key asynchronously so a rejected pack read is never left unhandled
garrytand34e7a388ba7
diff --git a/src/core/schema-pack/engine-resolution.ts b/src/core/schema-pack/engine-resolution.tsindex 8b5462324c..35c5eedd0f 100644--- a/src/core/schema-pack/engine-resolution.ts+++ b/src/core/schema-pack/engine-resolution.ts@@ -18,7 +18,7 @@ export async function engineSchemaInput(options: EngineSchemaOptions,): Promise<LoadActivePackInput> {const [dbConfig, sourceValue] = await Promise.all([readDbSchemaPack(engine),- options.sourceId ? engine?.getConfig(`schema_pack.source.${options.sourceId}`) : undefined]);+ (async () => options.sourceId ? engine?.getConfig(`schema_pack.source.${options.sourceId}`) : undefined)()]);const perSourceDb = new Map<string, string>();const value = sourceValue?.trim();if (options.sourceId && value) perSourceDb.set(options.sourceId, value);