memory: per-session semantic memory (strata-memory crate, Qdrant Edge + BGE-M3)

remember/recall/forget agent tools, one-way opt-in latch with embedder gate, fail-open Store-authoritative design, keyword fallback, model-id rebuild, GUI toggle + i18n; docs updated; split-debuginfo=unpacked
This commit is contained in:
adm committed 2026-11-30 11:37:48 +01:00
1 parent 6898cdf113
commit f74d53e446
24 files changed
+4853 -67

No files matched your search

+15
View File
@@ -800,6 +800,17 @@ function fillSettingsForm(data, scope) {
// MCP: catalog editor in Generali, per-session tool allowlist in Sessione.
$("#set-mcp-catalog").hidden = scope !== "general";
$("#set-mcp-tools").hidden = scope !== "session";
// Semantic memory: per-session ONE-WAY opt-in (hidden in Generali). Once on,
// the checkbox is disabled — it can never be turned off (irreversible latch).
$("#set-memory-field").hidden = !isSession;
if (isSession) {
const on = !!data.memory_enabled;
$("#set-memory").checked = on;
$("#set-memory").disabled = on;
$("#set-memory-hint").textContent = on
? t("settings.memory.hint.on")
: t("settings.memory.hint.off");
}
}
function readSettingsForm() {
@@ -855,6 +866,10 @@ async function saveSettings() {
applyFontSize(Number($("#set-fontsize").value));
// Preserve unexposed fields (seed, penalties) from the loaded instance.
const settings = { ...settingsBase, ...readSettingsForm() };
// One-way memory latch in the UI too: checking enables, never un-enables.
if (settingsScope === "session") {
settings.memory_enabled = $("#set-memory").checked || !!settingsBase.memory_enabled;
}
try {
if (settingsScope === "session") {
const sess = currentSession();