Skip to content

Commit d96e3a5

Browse files
chore: generate
1 parent dabf2dc commit d96e3a5

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

packages/opencode/src/tool/task.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export const Parameters = Schema.Struct({
5252
})
5353

5454
function output(sessionID: SessionID, text: string) {
55-
return [`<task id="${sessionID}" state="completed">`, "<task_result>", text, "</task_result>", "</task>"].join(
56-
"\n",
57-
)
55+
return [`<task id="${sessionID}" state="completed">`, "<task_result>", text, "</task_result>", "</task>"].join("\n")
5856
}
5957

6058
function backgroundOutput(sessionID: SessionID) {

packages/opencode/test/cli/run/entry.body.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,9 @@ describe("run entry body", () => {
264264
subagent_type: "explore",
265265
},
266266
title: "",
267-
output: [
268-
'<task id="child-1" state="completed">',
269-
"<task_result>",
270-
"",
271-
"</task_result>",
272-
"</task>",
273-
].join("\n"),
267+
output: ['<task id="child-1" state="completed">', "<task_result>", "", "</task_result>", "</task>"].join(
268+
"\n",
269+
),
274270
metadata: {
275271
sessionId: "child-1",
276272
},

0 commit comments

Comments
 (0)