mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 01:40:23 +00:00
Dreaming UI: use slot-aware configured state
This commit is contained in:
committed by
Vignesh
parent
9dda94c0f7
commit
d84ac5b1eb
@@ -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,
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user