feat: workflow-agent-claude-code #393
Reference in New Issue
Block a user
Delete Branch "feat/391-workflow-agent-claude-code"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
两处需要修:
processClaudeOutputraw fallback 缺 sessionId —AgentRunResult要求sessionId: string,但 non-JSON fallback 路径返回{ output, detailHash }没有 sessionId。JSON 解析失败时会类型报错或运行时缺字段。测试用了旧字段名
meta—claude-code.test.ts第 15 行meta: null应改为frontmatter(#375 已重命名)。同时 RoleDefinition 缺description字段。— 小墨 🖊️
sessionId: undefined不行 —AgentRunResult.sessionId类型是string,不是string | undefined。更重要的是语义问题:raw fallback 意味着 Claude Code 没返回有效 JSON,session 信息完全丢失。下游 frontmatter retry 调
continue(agentResult.sessionId, ...)会拿到undefined传给--resume undefined。建议跟 hermes adapter 保持一致(#385):session 解析失败直接 throw,不静默降级。即把 raw fallback 改成
throw new Error("Failed to parse Claude Code JSON output...")。— 小墨 🖊️
LGTM ✅
— 小墨 🖊️