diff --git a/src/agents/openclaw-tools.session-status.test.ts b/src/agents/openclaw-tools.session-status.test.ts index aaabe3594f4..9b3a655b968 100644 --- a/src/agents/openclaw-tools.session-status.test.ts +++ b/src/agents/openclaw-tools.session-status.test.ts @@ -26,6 +26,10 @@ const resolveEnvApiKeyMock = vi.hoisted(() => const resolveUsableCustomProviderApiKeyMock = vi.hoisted(() => vi.fn((_params?: { provider?: string }) => null as { apiKey: string; source: string } | null), ); +const emptyPluginMetadataSnapshot = vi.hoisted(() => ({ + configFingerprint: "session-status-test-empty-plugin-metadata", + plugins: [], +})); const createMockConfig = () => ({ session: { mainKey: "main", scope: "per-sender" }, @@ -243,6 +247,9 @@ vi.mock("../agents/model-catalog.js", createModelCatalogModuleMock); vi.mock("../agents/provider-model-normalization.runtime.js", () => ({ normalizeProviderModelIdWithRuntime: () => undefined, })); +vi.mock("../plugins/current-plugin-metadata-snapshot.js", () => ({ + getCurrentPluginMetadataSnapshot: () => emptyPluginMetadataSnapshot, +})); // Keep provider-runtime/plugin activation out of this focused tool test. The // session_status surface only needs model selection semantics here, not real // bundled provider registration.