mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 03:54:03 +00:00
test: require subagent wait guidance
This commit is contained in:
@@ -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.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user