fix: silence memory load errors in working-memory

This commit is contained in:
Ralph Chang
2026-02-19 21:13:20 +08:00
parent 17258ce60f
commit 4832b382b6
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -249,8 +249,7 @@ async function loadCoreMemory(
try {
const content = await readFile(path, "utf-8");
return JSON.parse(content) as CoreMemory;
} catch (error) {
console.error("Failed to load core memory:", error);
} catch {
return null;
}
}
@@ -356,8 +355,7 @@ async function loadWorkingMemory(
}
return data as WorkingMemory;
} catch (error) {
console.error("Failed to load working memory:", error);
} catch {
return null;
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "opencode-working-memory",
"version": "1.1.1",
"version": "1.1.2",
"description": "Advanced four-tier memory architecture for OpenCode with intelligent pressure monitoring and auto-storage governance",
"type": "module",
"main": "index.ts",