mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:40:43 +00:00
fix(memory): preserve dreams path bridge behavior
This commit is contained in:
@@ -78,9 +78,9 @@ describe("memory host SDK package internals", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps package-specific dreams path casing", () => {
|
||||
it("allows top-level dreams path casing variants", () => {
|
||||
expect(isMemoryPath("dreams.md")).toBe(true);
|
||||
expect(isMemoryPath("DREAMS.md")).toBe(false);
|
||||
expect(isMemoryPath("DREAMS.md")).toBe(true);
|
||||
});
|
||||
|
||||
it("builds markdown and multimodal file entries", async () => {
|
||||
|
||||
@@ -88,7 +88,7 @@ export function isMemoryPath(relPath: string): boolean {
|
||||
if (!normalized) {
|
||||
return false;
|
||||
}
|
||||
if (normalized === CANONICAL_ROOT_MEMORY_FILENAME || normalized === "dreams.md") {
|
||||
if (normalized === CANONICAL_ROOT_MEMORY_FILENAME || normalized.toLowerCase() === "dreams.md") {
|
||||
return true;
|
||||
}
|
||||
return normalized.startsWith("memory/");
|
||||
|
||||
Reference in New Issue
Block a user