fix: use getContentMerklePayload to extract prompt text

Was showing raw YAML of the CAS node instead of the payload string.

小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-09 10:34:43 +00:00
parent bbe4fe0ed1
commit 8e36d3e1f5
@@ -27,10 +27,7 @@ async function readStartInfo(
const promptHash = parsed.node.refs[0] ?? null;
let prompt: string | null = null;
if (promptHash !== null) {
const promptYaml = await cas.get(promptHash);
if (promptYaml !== null) {
prompt = promptYaml;
}
prompt = await getContentMerklePayload(cas, promptHash);
}
return { name, prompt };
}