From da293967473245043aa08f7f08e9b447e56ad347 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 7 Apr 2026 10:13:16 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20[RESEARCH]=20MemPalace=20=E2=80=94=20Lo?= =?UTF-8?q?cal=20AI=20Memory=20System=20Assessment=20&=20Leverage=20Plan?= =?UTF-8?q?=20(#1047)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #1047 Agent: groq --- app.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 25c570d..35b6be8 100644 --- a/app.js +++ b/app.js @@ -1931,7 +1931,7 @@ function setupControls() { // Add MemPalace mining button document.querySelector('.chat-quick-actions').innerHTML += ` - +
Compression: --x
Docs: 0
@@ -2249,15 +2249,20 @@ function saveSession() { // Store in MemPalace if (window.mempalace) { - mempalace.add_drawer('chat_history', { - content: JSON.stringify(msgs), - metadata: { - type: 'chat', - timestamp: Date.now() - } - }); + try { + mempalace.add_drawer('chat_history', { + content: JSON.stringify(msgs), + metadata: { + type: 'chat', + timestamp: Date.now() + } + }); + } catch (error) { + console.error('MemPalace save failed:', error); + } } + // Fallback to localStorage localStorage.setItem('nexus_chat_history', JSON.stringify(msgs)); } -- 2.43.0