diff options
| author | Aiden Cline <[email protected]> | 2025-07-29 06:18:34 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-29 06:18:34 -0500 |
| commit | c165360e17d54e8c1f428dafbc700b8eae5dc3cf (patch) | |
| tree | 9be39bd45fff5b72c32e8c55f213f651118076d8 | |
| parent | 9cb0f21b4e4c8e2ab1c21d174b1c104fed77c13a (diff) | |
| download | opencode-c165360e17d54e8c1f428dafbc700b8eae5dc3cf.tar.gz opencode-c165360e17d54e8c1f428dafbc700b8eae5dc3cf.zip | |
fix: task type error (#1384)
| -rw-r--r-- | packages/opencode/src/tool/task.ts | 2 |
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 ?? "", } }, } |
