From 9aaf29bd3640ca2d853c483fcbe551a32bad316e Mon Sep 17 00:00:00 2001 From: Mariano Belinky Date: Thu, 9 Apr 2026 22:50:34 +0200 Subject: [PATCH] Memory: split slot-owner dreaming helper tests --- src/memory-host-sdk/dreaming.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/memory-host-sdk/dreaming.test.ts b/src/memory-host-sdk/dreaming.test.ts index 687f34e170d..bbf51f45471 100644 --- a/src/memory-host-sdk/dreaming.test.ts +++ b/src/memory-host-sdk/dreaming.test.ts @@ -156,6 +156,9 @@ describe("memory dreaming host helpers", () => { "America/Los_Angeles", ), ).toBe(true); + }); + + it("resolves the configured memory-slot plugin id", () => { expect( resolveMemoryDreamingPluginId({ plugins: { @@ -165,6 +168,9 @@ describe("memory dreaming host helpers", () => { }, } as OpenClawConfig), ).toBe("memos-local-openclaw-plugin"); + }); + + it("reads dreaming config from the configured memory-slot owner", () => { expect( resolveMemoryDreamingPluginConfig({ plugins: { @@ -187,6 +193,9 @@ describe("memory dreaming host helpers", () => { enabled: true, }, }); + }); + + it("reads dreaming config from memory-lancedb when it owns the memory slot", () => { expect( resolveMemoryDreamingPluginConfig({ plugins: { @@ -211,6 +220,9 @@ describe("memory dreaming host helpers", () => { frequency: "0 */6 * * *", }, }); + }); + + it("falls back to memory-core when no memory slot override is configured", () => { expect( resolveMemoryDreamingPluginConfig({ plugins: {