diff --git a/src/agents/pi-embedded-runner/compact.hooks.harness.ts b/src/agents/pi-embedded-runner/compact.hooks.harness.ts index e065b0105b3..eff1c6d7f6e 100644 --- a/src/agents/pi-embedded-runner/compact.hooks.harness.ts +++ b/src/agents/pi-embedded-runner/compact.hooks.harness.ts @@ -252,6 +252,10 @@ export async function loadCompactHooksHarness(): Promise<{ resolveContextEngine: resolveContextEngineMock, })); + vi.doMock("../../plugins/provider-runtime.js", () => ({ + prepareProviderRuntimeAuth: vi.fn(async () => undefined), + })); + vi.doMock("../../process/command-queue.js", () => ({ enqueueCommandInLane: vi.fn((_lane: unknown, task: () => unknown) => task()), })); @@ -375,6 +379,14 @@ export async function loadCompactHooksHarness(): Promise<{ })), })); + vi.doMock("../pi-bundle-mcp-tools.js", () => ({ + createBundleMcpToolRuntime: vi.fn(async () => undefined), + })); + + vi.doMock("../pi-bundle-lsp-runtime.js", () => ({ + createBundleLspToolRuntime: vi.fn(async () => undefined), + })); + vi.doMock("./sandbox-info.js", () => ({ buildEmbeddedSandboxInfo: vi.fn(() => undefined), }));