




















@@ -26,6 +26,10 @@ const resolveEnvApiKeyMock = vi.hoisted(() =>
2626const resolveUsableCustomProviderApiKeyMock = vi.hoisted(() =>
2727vi.fn((_params?: { provider?: string }) => null as { apiKey: string; source: string } | null),
2828);
29+const emptyPluginMetadataSnapshot = vi.hoisted(() => ({
30+configFingerprint: "session-status-test-empty-plugin-metadata",
31+plugins: [],
32+}));
29333034const createMockConfig = () => ({
3135session: { mainKey: "main", scope: "per-sender" },
@@ -243,6 +247,9 @@ vi.mock("../agents/model-catalog.js", createModelCatalogModuleMock);
243247vi.mock("../agents/provider-model-normalization.runtime.js", () => ({
244248normalizeProviderModelIdWithRuntime: () => undefined,
245249}));
250+vi.mock("../plugins/current-plugin-metadata-snapshot.js", () => ({
251+getCurrentPluginMetadataSnapshot: () => emptyPluginMetadataSnapshot,
252+}));
246253// Keep provider-runtime/plugin activation out of this focused tool test. The
247254// session_status surface only needs model selection semantics here, not real
248255// bundled provider registration.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。