From 8e36d3e1f5c714098c422d7f0a64381ccb1b9fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Sat, 9 May 2026 10:34:43 +0000 Subject: [PATCH] fix: use getContentMerklePayload to extract prompt text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was showing raw YAML of the CAS node instead of the payload string. 小橘 --- packages/cli-workflow/src/commands/serve/routes-thread.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cli-workflow/src/commands/serve/routes-thread.ts b/packages/cli-workflow/src/commands/serve/routes-thread.ts index e0a6e76..fdd9826 100644 --- a/packages/cli-workflow/src/commands/serve/routes-thread.ts +++ b/packages/cli-workflow/src/commands/serve/routes-thread.ts @@ -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 }; }