test(agents): trim subagent spawn config duplication

This commit is contained in:
Vincent Koc
2026-04-12 16:30:31 +01:00
parent 48f74a599e
commit a19e492fb3
2 changed files with 2 additions and 36 deletions

View File

@@ -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<string, unknown>,
}));
let resetSubagentRegistryForTests: typeof import("./subagent-registry.js").resetSubagentRegistryForTests;

View File

@@ -8,24 +8,7 @@ type GatewayRequest = { method?: string; params?: Record<string, unknown> };
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<string, unknown>,
}));
const hookRunnerMocks = vi.hoisted(() => ({