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(() => ({