feat: add experimental background subagents (#27084)
This commit is contained in:
@@ -235,6 +235,10 @@ describe("tool parameters", () => {
|
||||
const parsed = parse(Task, { description: "d", prompt: "p", subagent_type: "general" })
|
||||
expect(parsed.subagent_type).toBe("general")
|
||||
})
|
||||
test("accepts optional background flag", () => {
|
||||
const parsed = parse(Task, { description: "d", prompt: "p", subagent_type: "general", background: true })
|
||||
expect(parsed.background).toBe(true)
|
||||
})
|
||||
test("rejects missing prompt", () => {
|
||||
expect(accepts(Task, { description: "d", subagent_type: "general" })).toBe(false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user