From 4dff320d5cd07fc19e920790de7b1de330661ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Fri, 22 May 2026 18:57:07 +0800 Subject: [PATCH] fix: throw on non-JSON Claude Code output instead of fallback --- .../workflow-agent-claude-code/src/claude-code.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/workflow-agent-claude-code/src/claude-code.ts b/packages/workflow-agent-claude-code/src/claude-code.ts index aa2ef29..3610a6d 100644 --- a/packages/workflow-agent-claude-code/src/claude-code.ts +++ b/packages/workflow-agent-claude-code/src/claude-code.ts @@ -8,11 +8,7 @@ import { createAgent, } from "@uncaged/workflow-agent-kit"; -import { - parseClaudeCodeJsonOutput, - storeClaudeCodeDetail, - storeClaudeCodeRawOutput, -} from "./session-detail.js"; +import { parseClaudeCodeJsonOutput, storeClaudeCodeDetail } from "./session-detail.js"; const CLAUDE_COMMAND = "claude"; const CLAUDE_MAX_TURNS = 90; @@ -122,9 +118,9 @@ async function processClaudeOutput(stdout: string, store: Store): Promise {