From 4832b382b6fe343c3f5635b43641a70890217a7e Mon Sep 17 00:00:00 2001 From: Ralph Chang Date: Thu, 19 Feb 2026 21:13:20 +0800 Subject: [PATCH] fix: silence memory load errors in working-memory --- index.ts | 6 ++---- package.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/index.ts b/index.ts index 903ba7b..534e751 100644 --- a/index.ts +++ b/index.ts @@ -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; } } diff --git a/package.json b/package.json index 352179a..2d89e21 100644 --- a/package.json +++ b/package.json @@ -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",