Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Member-facts test reads the submit result from its own block, not the joined text

garrytand2d5bfaa9ccb
diff --git a/test/access-member-facts.test.ts b/test/access-member-facts.test.ts
index ed415d51f5..a5db49a97d 100644
--- a/test/access-member-facts.test.ts
+++ b/test/access-member-facts.test.ts
@@ -86,7 +86,7 @@ for (const kind of testBackends()) {
});
const text = out.content.map(c => c.text).join('\n');
let json: Record<string, any> = {};
- try { json = JSON.parse(text); } catch { /* prose */ }
+ try { json = JSON.parse(out.content[0]?.text ?? ''); } catch { /* prose */ }
return { isError: out.isError === true, text, json, meta: out._meta, all: text + JSON.stringify(out._meta ?? {}) + JSON.stringify(out.structuredContent ?? {}) };
}
const remember = (as: Who, fact: string, extra: Record<string, unknown> = {}) => call(as, 'remember', { fact, provenance: 'qm test', ...extra });