From 83bf5ce4f34dd106035ff15fd56d7989495aecfd Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 18:48:07 +0100 Subject: [PATCH] test: require subagent wait guidance --- src/agents/tools/subagents-tool.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agents/tools/subagents-tool.test.ts b/src/agents/tools/subagents-tool.test.ts index 6fdfcea8cfb..9ae06770ca6 100644 --- a/src/agents/tools/subagents-tool.test.ts +++ b/src/agents/tools/subagents-tool.test.ts @@ -5,7 +5,8 @@ describe("subagents tool", () => { it("does not advertise sessions_yield as unconditionally available", () => { const tool = createSubagentsTool(); - expect(tool.description).toContain("If sessions_yield is available"); - expect(tool.description).not.toContain("Use sessions_yield to wait"); + expect(tool.description).toBe( + "On-demand list, kill, or steer spawned sub-agents for this requester session. If sessions_yield is available, use it to wait for completion events; do not poll this tool in wait loops.", + ); }); });