test: isolate model selection normalization

This commit is contained in:
Shakker
2026-05-09 13:26:34 +01:00
parent 06eed5a454
commit 9d37d06233

View File

@@ -17,6 +17,10 @@ vi.mock("../../agents/model-catalog.runtime.js", () => ({
]),
}));
vi.mock("../../agents/provider-model-normalization.runtime.js", () => ({
normalizeProviderModelIdWithRuntime: () => undefined,
}));
vi.mock("../../channels/plugins/session-conversation.js", () => ({
resolveSessionParentSessionKey: (sessionKey?: string) =>
sessionKey?.replace(/:thread:[^:]+$/, "").replace(/:topic:[^:]+$/, "") ?? null,