test: require subagent wait guidance

This commit is contained in:
Shakker
2026-05-12 18:48:07 +01:00
parent 6861d8a6d7
commit 83bf5ce4f3

View File

@@ -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.",
);
});
});