summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-07-29 06:18:34 -0500
committerGitHub <[email protected]>2025-07-29 06:18:34 -0500
commitc165360e17d54e8c1f428dafbc700b8eae5dc3cf (patch)
tree9be39bd45fff5b72c32e8c55f213f651118076d8 /packages
parent9cb0f21b4e4c8e2ab1c21d174b1c104fed77c13a (diff)
downloadopencode-c165360e17d54e8c1f428dafbc700b8eae5dc3cf.tar.gz
opencode-c165360e17d54e8c1f428dafbc700b8eae5dc3cf.zip
fix: task type error (#1384)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/tool/task.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/task.ts b/packages/opencode/src/tool/task.ts
index 6d78daf73..f245c7772 100644
--- a/packages/opencode/src/tool/task.ts
+++ b/packages/opencode/src/tool/task.ts
@@ -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 ?? "",
}
},
}