From a19e492fb3b4456cb8aa67d59dbe4ea034df48cb Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Apr 2026 16:30:31 +0100 Subject: [PATCH] test(agents): trim subagent spawn config duplication --- ...subagents.sessions-spawn.allowlist.test.ts | 19 +------------------ src/agents/sessions-spawn-hooks.test.ts | 19 +------------------ 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/src/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.ts b/src/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.ts index bd9c330e904..9989b784922 100644 --- a/src/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.ts +++ b/src/agents/openclaw-tools.subagents.sessions-spawn.allowlist.test.ts @@ -7,24 +7,7 @@ import { const hoisted = vi.hoisted(() => ({ callGatewayMock: vi.fn(), - configOverride: { - session: { mainKey: "main", scope: "per-sender" }, - tools: { - sessions_spawn: { - attachments: { - enabled: true, - maxFiles: 50, - maxFileBytes: 1 * 1024 * 1024, - maxTotalBytes: 5 * 1024 * 1024, - }, - }, - }, - agents: { - defaults: { - workspace: "/tmp", - }, - }, - }, + configOverride: {} as Record, })); let resetSubagentRegistryForTests: typeof import("./subagent-registry.js").resetSubagentRegistryForTests; diff --git a/src/agents/sessions-spawn-hooks.test.ts b/src/agents/sessions-spawn-hooks.test.ts index bb9206873b3..91a0e835958 100644 --- a/src/agents/sessions-spawn-hooks.test.ts +++ b/src/agents/sessions-spawn-hooks.test.ts @@ -8,24 +8,7 @@ type GatewayRequest = { method?: string; params?: Record }; const hoisted = vi.hoisted(() => ({ callGatewayMock: vi.fn(), - configOverride: { - session: { mainKey: "main", scope: "per-sender" }, - tools: { - sessions_spawn: { - attachments: { - enabled: true, - maxFiles: 50, - maxFileBytes: 1 * 1024 * 1024, - maxTotalBytes: 5 * 1024 * 1024, - }, - }, - }, - agents: { - defaults: { - workspace: "/tmp", - }, - }, - }, + configOverride: {} as Record, })); const hookRunnerMocks = vi.hoisted(() => ({