mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-31 03:24:43 +00:00
chore: generate
This commit is contained in:
parent
c313504c82
commit
2859603cbb
1 changed files with 1 additions and 3 deletions
|
|
@ -215,9 +215,7 @@ export const TaskTool = Tool.define(
|
|||
"message" in result.info.error.data && typeof result.info.error.data.message === "string"
|
||||
? result.info.error.data.message
|
||||
: result.info.error.name
|
||||
return yield* Effect.fail(
|
||||
new Error(`Subagent failed (task_id: ${nextSession.id}): ${message}`),
|
||||
)
|
||||
return yield* Effect.fail(new Error(`Subagent failed (task_id: ${nextSession.id}): ${message}`))
|
||||
}
|
||||
return result.parts.findLast((item) => item.type === "text")?.text ?? ""
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue