diff --git a/src/agents/agent-command.live-model-switch.test.ts b/src/agents/agent-command.live-model-switch.test.ts index 7a324311515..fc7d5ab5655 100644 --- a/src/agents/agent-command.live-model-switch.test.ts +++ b/src/agents/agent-command.live-model-switch.test.ts @@ -200,6 +200,7 @@ vi.mock("../utils/message-channel.js", () => ({ const resolveEffectiveModelFallbacksMock = vi.fn().mockReturnValue(undefined); vi.mock("./agent-scope.js", () => ({ listAgentIds: () => ["default"], + resolveAgentConfig: () => undefined, resolveAgentDir: () => "/tmp/agent", resolveEffectiveModelFallbacks: resolveEffectiveModelFallbacksMock, resolveSessionAgentId: () => "default", diff --git a/src/cli/program/preaction.test.ts b/src/cli/program/preaction.test.ts index aef0353c700..cb476f929e6 100644 --- a/src/cli/program/preaction.test.ts +++ b/src/cli/program/preaction.test.ts @@ -236,7 +236,7 @@ describe("registerPreActionHooks", () => { expect(ensureConfigReadyMock).toHaveBeenCalledWith({ runtime: runtimeMock, - commandPath: ["agent"], + commandPath: ["agent", "hi"], }); expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" }); });