test: shape allowed agents payload · openclaw/openclaw@b5d12bb
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -60,16 +60,19 @@ describe("agents_list tool", () => {
|
60 | 60 | ); |
61 | 61 | const details = result.details as AgentListDetails; |
62 | 62 | |
63 | | -expect(details.requester).toBe("main"); |
64 | | -expect(details.agents).toStrictEqual([ |
65 | | -expect.objectContaining({ |
66 | | -id: "codex", |
67 | | -name: "Codex", |
68 | | -configured: true, |
69 | | -model: "openai/gpt-5.5", |
70 | | -agentRuntime: { id: "codex", source: "model" }, |
71 | | -}), |
72 | | -]); |
| 63 | +expect(details).toStrictEqual({ |
| 64 | +requester: "main", |
| 65 | +allowAny: false, |
| 66 | +agents: [ |
| 67 | +{ |
| 68 | +id: "codex", |
| 69 | +name: "Codex", |
| 70 | +configured: true, |
| 71 | +model: "openai/gpt-5.5", |
| 72 | +agentRuntime: { id: "codex", source: "model" }, |
| 73 | +}, |
| 74 | +], |
| 75 | +}); |
73 | 76 | }); |
74 | 77 | |
75 | 78 | it("returns requester as the only target when no subagent allowlist is configured", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。