From c7b7dc335e035306a29a346683de2cb42467333f Mon Sep 17 00:00:00 2001 From: Mariano <132747814+mbelinky@users.noreply.github.com> Date: Mon, 6 Apr 2026 03:33:47 +0200 Subject: [PATCH] test: fix current-main prep blockers (#61582) Merged via squash. Prepared head SHA: 49f7b121aa6f00e30b85b9bb0ccb2626c3a4341c Reviewed-by: @mbelinky --- src/agents/agent-command.live-model-switch.test.ts | 1 + src/cli/program/preaction.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" }); });