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);