mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
fix: task type error (#1384)
This commit is contained in:
@@ -70,7 +70,7 @@ export const TaskTool = Tool.define("task", async () => {
|
|||||||
metadata: {
|
metadata: {
|
||||||
summary: result.parts.filter((x) => x.type === "tool"),
|
summary: result.parts.filter((x) => x.type === "tool"),
|
||||||
},
|
},
|
||||||
output: result.parts.findLast((x) => x.type === "text")!.text,
|
output: result.parts.findLast((x) => x.type === "text")?.text ?? "",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user