mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
fix(memory): standardize DREAMS trail path
This commit is contained in:
@@ -162,10 +162,6 @@ describe("isMemoryPath", () => {
|
||||
it("allows explicit access to top-level DREAMS.md", () => {
|
||||
expect(isMemoryPath("DREAMS.md")).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps explicit access compatible with legacy dreams.md", () => {
|
||||
expect(isMemoryPath("dreams.md")).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("buildFileEntry", () => {
|
||||
|
||||
@@ -77,12 +77,7 @@ export function isMemoryPath(relPath: string): boolean {
|
||||
if (!normalized) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
normalized === "MEMORY.md" ||
|
||||
normalized === "memory.md" ||
|
||||
normalized === "DREAMS.md" ||
|
||||
normalized === "dreams.md"
|
||||
) {
|
||||
if (normalized === "MEMORY.md" || normalized === "memory.md" || normalized === "DREAMS.md") {
|
||||
return true;
|
||||
}
|
||||
return normalized.startsWith("memory/");
|
||||
|
||||
Reference in New Issue
Block a user