Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(core): check for "toolCall" type in hasToolUse() to match pi-ai types
Jiayuan Zhangef8b38899a60
diff --git a/packages/core/src/agent/extract-text.ts b/packages/core/src/agent/extract-text.tsindex 4a2e8afef3..5eb0ca3867 100644--- a/packages/core/src/agent/extract-text.ts+++ b/packages/core/src/agent/extract-text.ts@@ -16,7 +16,7 @@ export function hasToolUse(message: AgentMessage | undefined): boolean {if (!message || typeof message !== "object" || !("content" in message)) return false;const content = (message as { content?: Array<{ type: string }> }).content;if (!Array.isArray(content)) return false;- return content.some((c) => c.type === "tool_use");+ return content.some((c) => c.type === "toolCall" || c.type === "tool_use");}/** Extract thinking/reasoning content from an AgentMessage */