fix: add sessionId to raw fallback, fix test meta→frontmatter+description

This commit is contained in:
2026-05-22 18:42:27 +08:00
parent 31695e89a8
commit 176844d7f5
2 changed files with 3 additions and 2 deletions
@@ -7,11 +7,12 @@ function makeCtx(overrides: Partial<AgentContext> = {}): AgentContext {
workflow: {
roles: {
developer: {
description: "TDD implementation per test spec",
goal: "Write code",
capabilities: ["coding"],
procedure: "1. Read spec\n2. Write code",
output: "List files changed",
meta: null,
frontmatter: "",
},
},
conditions: {},
@@ -124,7 +124,7 @@ async function processClaudeOutput(stdout: string, store: Store): Promise<AgentR
// Non-JSON fallback
const detailHash = await storeClaudeCodeRawOutput(store, stdout);
return { output: stdout, detailHash };
return { output: stdout, detailHash, sessionId: undefined };
}
async function runClaudeCode(ctx: AgentContext): Promise<AgentRunResult> {