mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak
This commit is contained in:
parent
6a7be6649f
commit
28995e5df7
1 changed files with 1 additions and 2 deletions
|
|
@ -103,8 +103,7 @@ export const TaskTool = Tool.define("task", async () => {
|
|||
all = all.flatMap((msg) => msg.parts.filter((x: any) => x.type === "tool") as MessageV2.ToolPart[])
|
||||
const text = result.parts.findLast((x) => x.type === "text")?.text ?? ""
|
||||
|
||||
const output =
|
||||
text + "\n\n" + ["<session_metadata>", `Session ID: ${session.id}`, "</session_metadata>"].join("\n")
|
||||
const output = text + "\n\n" + ["<task_metadata>", `session_id: ${session.id}`, "</task_metadata>"].join("\n")
|
||||
|
||||
return {
|
||||
title: params.description,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue