fix(tui): keep completion task label concise

This commit is contained in:
Kit Langton 2026-07-12 12:54:12 +00:00 committed by opencode-agent[bot]
commit 482dae02aa
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ export const Plugin = {
yield* runtime.session.synthetic({
sessionID: parentID,
text: `<subagent id="${childID}" state="${state}" description="${description}">\n${text}\n</subagent>`,
description: `Background agent ${state}: ${description}`,
description,
metadata: { source: "subagent", childID, agent, state, description },
})
})

View file

@ -289,7 +289,7 @@ describe("SubagentTool", () => {
const admission = Array.from(yield* Fiber.join(admitted))[0]
expect(admission?.data.input.data.text).toContain(`<subagent id="${childID}" state="completed"`)
expect(admission?.data.input.data).toMatchObject({
description: "Background agent completed: background review",
description: "background review",
metadata: {
source: "subagent",
childID,