mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
fix: task type error (#1384)
This commit is contained in:
parent
9cb0f21b4e
commit
c165360e17
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ export const TaskTool = Tool.define("task", async () => {
|
|||
metadata: {
|
||||
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 ?? "",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue