fix(tui): keep completion task label concise
This commit is contained in:
parent
41b51e1824
commit
482dae02aa
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue