From fdafef128aad04abe0e4663e2c5b7d3d6c596942 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Tue, 7 Apr 2026 07:44:10 -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 | 23 +++++++++++++++++++++++ index.html | 5 +++++ style.css | 5 ++++- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 5249187..fb8dbaf 100644 --- a/app.js +++ b/app.js @@ -2124,6 +2124,18 @@ function saveSession() { html: el.innerHTML, className: el.className })); + + // Store in MemPalace + if (window.mempalace) { + mempalace.add_drawer('chat_history', { + content: JSON.stringify(msgs), + metadata: { + type: 'chat', + timestamp: Date.now() + } + }); + } + localStorage.setItem('nexus_chat_history', JSON.stringify(msgs)); } @@ -2148,6 +2160,17 @@ function addChatMessage(agent, text, shouldSave = true) { const div = document.createElement('div'); div.className = `chat-msg chat-msg-${agent}`; + // Store in MemPalace + if (window.mempalace) { + mempalace.add_drawer('chat_history', { + content: text, + metadata: { + agent, + timestamp: Date.now() + } + }); + } + // Store in MemPalace if (agent !== 'system') { // In a real implementation, we'd use mempalace.add_drawer() diff --git a/index.html b/index.html index e96b630..2fc3a89 100644 --- a/index.html +++ b/index.html @@ -309,6 +309,11 @@
INITIALIZING...
+
+ + +
+
diff --git a/style.css b/style.css index 7d5483b..a1fe624 100644 --- a/style.css +++ b/style.css @@ -441,7 +441,9 @@ canvas#nexus-canvas { font-variant-numeric: tabular-nums lining-nums; } -#mem-palace-status { +#mem-palace-status, +#mem-palace-controls { + transition: all 0.3s ease; position: absolute; top: var(--space-4); right: var(--space-4); @@ -829,6 +831,7 @@ canvas#nexus-canvas { transform: rotate(180deg); } .chat-messages { + max-height: 280px; flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); -- 2.43.0