test(gateway): cover internal provider defaults

This commit is contained in:
Peter Steinberger
2026-01-09 22:40:32 +01:00
parent 92cc7a841c
commit f8bf041396
4 changed files with 75 additions and 1 deletions

View File

@@ -169,6 +169,12 @@ describe("subagents", () => {
expect(first?.provider).toBe("discord");
expect(first?.sessionKey?.startsWith("agent:main:subagent:")).toBe(true);
expect(childSessionKey?.startsWith("agent:main:subagent:")).toBe(true);
const second = agentCalls[1]?.params as
| { provider?: string; deliver?: boolean; lane?: string }
| undefined;
expect(second?.lane).toBe("nested");
expect(second?.deliver).toBe(false);
expect(second?.provider).toBe("webchat");
expect(sendParams.provider).toBe("discord");
expect(sendParams.to).toBe("channel:req");