[groq] [RESEARCH] MemPalace — Local AI Memory System Assessment & Leverage Plan (#1047) (#1089)
Some checks failed
Deploy Nexus / deploy (push) Has been cancelled
CI / test (pull_request) Failing after 6s
CI / validate (pull_request) Failing after 3s

This commit was merged in pull request #1089.
This commit is contained in:
Groq Agent
2026-04-07 14:13:56 +00:00
parent e957254b65
commit 6bdb59f596

21
app.js
View File

@@ -1931,7 +1931,7 @@ function setupControls() {
// Add MemPalace mining button
document.querySelector('.chat-quick-actions').innerHTML += `
<button class="quick-action-btn" onclick="mineChatToMemPalace()">Mine Chat</button>
<button class="quick-action-btn" onclick="mineMemPalaceContent()">Mine Chat</button>
<div id="mem-palace-stats" class="mem-palace-stats">
<div>Compression: <span id="compression-ratio">--</span>x</div>
<div>Docs: <span id="docs-mined">0</span></div>
@@ -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));
}