Skip to content

Commit 28995e5

Browse files
committed
tweak
1 parent 6a7be66 commit 28995e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/opencode/src/tool/task.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ export const TaskTool = Tool.define("task", async () => {
103103
all = all.flatMap((msg) => msg.parts.filter((x: any) => x.type === "tool") as MessageV2.ToolPart[])
104104
const text = result.parts.findLast((x) => x.type === "text")?.text ?? ""
105105

106-
const output =
107-
text + "\n\n" + ["<session_metadata>", `Session ID: ${session.id}`, "</session_metadata>"].join("\n")
106+
const output = text + "\n\n" + ["<task_metadata>", `session_id: ${session.id}`, "</task_metadata>"].join("\n")
108107

109108
return {
110109
title: params.description,

0 commit comments

Comments
 (0)