mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-21 18:26:09 +00:00
fix(tui): keep completion task label concise
This commit is contained in:
committed by
opencode-agent[bot]
parent
41b51e1824
commit
482dae02aa
@@ -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 },
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user