Dreaming UI: use slot-aware configured state

This commit is contained in:
Vignesh Natarajan
2026-04-07 02:42:48 -07:00
committed by Vignesh
parent 9dda94c0f7
commit d84ac5b1eb
3 changed files with 100 additions and 20 deletions

View File

@@ -207,4 +207,39 @@ describe("memory dreaming host helpers", () => {
},
});
});
it('falls back to memory-core when memory slot is "none" or blank', () => {
expect(
resolveMemoryDreamingPluginId({
plugins: {
slots: {
memory: "none",
},
},
} as OpenClawConfig),
).toBe("memory-core");
expect(
resolveMemoryDreamingPluginConfig({
plugins: {
slots: {
memory: " ",
},
entries: {
"memory-core": {
config: {
dreaming: {
enabled: true,
},
},
},
},
},
} as OpenClawConfig),
).toEqual({
dreaming: {
enabled: true,
},
});
});
});