The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(settings): add memory engine capability indicator
Steven Enamakel8a2dfce9d7e3
diff --git a/app/src/components/intelligence/useMemoryEngineCapabilities.ts b/app/src/components/intelligence/useMemoryEngineCapabilities.tsindex 1020caa6f7..b314101559 100644--- a/app/src/components/intelligence/useMemoryEngineCapabilities.ts+++ b/app/src/components/intelligence/useMemoryEngineCapabilities.ts@@ -57,7 +57,8 @@ function publish(next: Snapshot) {*/function fetchSnapshot(force: boolean): Promise<void> {if (inflight) return inflight;- const fresh = snapshot.fetchedAt > 0 && Date.now() - snapshot.fetchedAt < MEMORY_ENGINE_CACHE_TTL_MS;+ const fresh =+ snapshot.fetchedAt > 0 && Date.now() - snapshot.fetchedAt < MEMORY_ENGINE_CACHE_TTL_MS;if (!force && fresh && snapshot.error === null) return Promise.resolve();inflight = (async () => {try {diff --git a/app/src/components/settings/panels/MemoryEnginePanel.test.tsx b/app/src/components/settings/panels/MemoryEnginePanel.test.tsxindex 4f58440f76..56ac74e6c4 100644--- a/app/src/components/settings/panels/MemoryEnginePanel.test.tsx+++ b/app/src/components/settings/panels/MemoryEnginePanel.test.tsx@@ -96,7 +96,8 @@ async function renderPanel() {await screen.findByTestId('memory-engine-option-tinymemory');}-const pick = (id: string) => fireEvent.click(screen.getByRole('radio', { name: new RegExp(id, 'i') }));+const pick = (id: string) =>+ fireEvent.click(screen.getByRole('radio', { name: new RegExp(id, 'i') }));beforeEach(() => {vi.clearAllMocks();diff --git a/app/src/components/settings/panels/MemoryEnginePanel.tsx b/app/src/components/settings/panels/MemoryEnginePanel.tsxindex 25d52f87d4..5e8a79deb9 100644--- a/app/src/components/settings/panels/MemoryEnginePanel.tsx+++ b/app/src/components/settings/panels/MemoryEnginePanel.tsx@@ -10,6 +10,7 @@*/import debug from 'debug';import { useCallback, useEffect, useMemo, useRef, useState } from 'react';+import { useT } from '../../../lib/i18n/I18nContext';import { useCoreState } from '../../../providers/CoreStateProvider';import { trackAnalyticsEvent } from '../../../services/analytics';diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex bdd2e9e084..7c84d9446f 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -7132,7 +7132,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'مفتاح API (اختياري)','memoryEngine.keySaved': 'يوجد مفتاح محفوظ. اتركه فارغًا للإبقاء عليه.','memoryEngine.keySavedPlaceholder': 'محفوظ (مخفي)',- 'memoryEngine.fallback': 'الذاكرة متوقفة مؤقتًا: المحرك {engine} غير متاح، لذا لا يتم حفظ أو استدعاء أي شيء حتى يعود. {reason}',+ 'memoryEngine.fallback':+ 'الذاكرة متوقفة مؤقتًا: المحرك {engine} غير متاح، لذا لا يتم حفظ أو استدعاء أي شيء حتى يعود. {reason}','memoryEngine.paused': 'الذاكرة متوقفة مؤقتًا','memoryEngine.dialog.cancelMigration': 'إلغاء النسخ','memoryEngine.lastError': 'فشل آخر طلب إلى محرك الذاكرة. تحقق من إعدادات المحرك.',diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.tsindex f51103a4a9..4a39f2972b 100644--- a/app/src/lib/i18n/bn.ts+++ b/app/src/lib/i18n/bn.ts@@ -7282,7 +7282,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API কী (ঐচ্ছিক)','memoryEngine.keySaved': 'একটি কী সংরক্ষিত আছে। রাখতে ফাঁকা রাখুন।','memoryEngine.keySavedPlaceholder': 'সংরক্ষিত (লুকানো)',- 'memoryEngine.fallback': 'মেমোরি বিরতিতে আছে: ইঞ্জিন {engine} পাওয়া যাচ্ছে না, তাই এটি ফিরে না আসা পর্যন্ত কিছু সংরক্ষণ বা স্মরণ করা হচ্ছে না। {reason}',+ 'memoryEngine.fallback':+ 'মেমোরি বিরতিতে আছে: ইঞ্জিন {engine} পাওয়া যাচ্ছে না, তাই এটি ফিরে না আসা পর্যন্ত কিছু সংরক্ষণ বা স্মরণ করা হচ্ছে না। {reason}','memoryEngine.paused': 'মেমোরি বিরতিতে আছে','memoryEngine.dialog.cancelMigration': 'কপি বাতিল করুন','memoryEngine.lastError':diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex c762e3a66d..2957bdf436 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -7482,7 +7482,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API-Schlüssel (optional)','memoryEngine.keySaved': 'Ein Schlüssel ist gespeichert. Leer lassen, um ihn zu behalten.','memoryEngine.keySavedPlaceholder': 'Gespeichert (verborgen)',- 'memoryEngine.fallback': 'Der Speicher ist pausiert: {engine} ist nicht verfügbar, daher wird nichts gespeichert oder abgerufen, bis es wieder erreichbar ist. {reason}',+ 'memoryEngine.fallback':+ 'Der Speicher ist pausiert: {engine} ist nicht verfügbar, daher wird nichts gespeichert oder abgerufen, bis es wieder erreichbar ist. {reason}','memoryEngine.paused': 'Der Speicher ist pausiert','memoryEngine.dialog.cancelMigration': 'Kopieren abbrechen','memoryEngine.lastError':diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 2c67fe6a49..8598a6c6df 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -7597,7 +7597,8 @@ const en: TranslationMap = {'memoryEngine.apiKeyOptional': 'API key (optional)','memoryEngine.keySaved': 'A key is saved. Leave blank to keep it.','memoryEngine.keySavedPlaceholder': 'Saved (hidden)',- 'memoryEngine.fallback': 'Memory is paused: {engine} is unavailable, so nothing is being saved or recalled until it is back. {reason}',+ 'memoryEngine.fallback':+ 'Memory is paused: {engine} is unavailable, so nothing is being saved or recalled until it is back. {reason}','memoryEngine.paused': 'Memory is paused','memoryEngine.dialog.cancelMigration': 'Cancel copy','memoryEngine.lastError': 'The last memory engine request failed. Check the engine settings.',diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex 8163823a2e..e3ef8119ab 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -7437,7 +7437,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'Clave de API (opcional)','memoryEngine.keySaved': 'Hay una clave guardada. Déjalo en blanco para conservarla.','memoryEngine.keySavedPlaceholder': 'Guardada (oculta)',- 'memoryEngine.fallback': 'La memoria está en pausa: {engine} no está disponible, así que no se guarda ni se recupera nada hasta que vuelva. {reason}',+ 'memoryEngine.fallback':+ 'La memoria está en pausa: {engine} no está disponible, así que no se guarda ni se recupera nada hasta que vuelva. {reason}','memoryEngine.paused': 'La memoria está en pausa','memoryEngine.dialog.cancelMigration': 'Cancelar copia','memoryEngine.lastError':diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 954e85289a..dce3541b27 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -7466,7 +7466,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': "Clé d'API (facultative)",'memoryEngine.keySaved': 'Une clé est enregistrée. Laissez vide pour la conserver.','memoryEngine.keySavedPlaceholder': 'Enregistrée (masquée)',- 'memoryEngine.fallback': 'La mémoire est en pause : {engine} est indisponible, donc rien n\'est enregistré ni rappelé tant qu\'il n\'est pas de retour. {reason}',+ 'memoryEngine.fallback':+ "La mémoire est en pause : {engine} est indisponible, donc rien n'est enregistré ni rappelé tant qu'il n'est pas de retour. {reason}",'memoryEngine.paused': 'La mémoire est en pause','memoryEngine.dialog.cancelMigration': 'Annuler la copie','memoryEngine.lastError':diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.tsindex 8df9d66015..bb7c605663 100644--- a/app/src/lib/i18n/hi.ts+++ b/app/src/lib/i18n/hi.ts@@ -7286,7 +7286,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API कुंजी (वैकल्पिक)','memoryEngine.keySaved': 'एक कुंजी सहेजी हुई है। उसे रखने के लिए खाली छोड़ें।','memoryEngine.keySavedPlaceholder': 'सहेजी गई (छिपी हुई)',- 'memoryEngine.fallback': 'मेमोरी रुकी हुई है: इंजन {engine} उपलब्ध नहीं है, इसलिए उसके लौटने तक कुछ भी सहेजा या याद नहीं किया जा रहा। {reason}',+ 'memoryEngine.fallback':+ 'मेमोरी रुकी हुई है: इंजन {engine} उपलब्ध नहीं है, इसलिए उसके लौटने तक कुछ भी सहेजा या याद नहीं किया जा रहा। {reason}','memoryEngine.paused': 'मेमोरी रुकी हुई है','memoryEngine.dialog.cancelMigration': 'कॉपी रद्द करें','memoryEngine.lastError': 'मेमोरी इंजन का पिछला अनुरोध विफल रहा। इंजन की सेटिंग जाँचें।',diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.tsindex 91fbd31ebc..81cf080883 100644--- a/app/src/lib/i18n/id.ts+++ b/app/src/lib/i18n/id.ts@@ -7333,7 +7333,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'Kunci API (opsional)','memoryEngine.keySaved': 'Kunci sudah tersimpan. Kosongkan untuk mempertahankannya.','memoryEngine.keySavedPlaceholder': 'Tersimpan (disembunyikan)',- 'memoryEngine.fallback': 'Memori dijeda: {engine} tidak tersedia, sehingga tidak ada yang disimpan atau diingat sampai kembali tersedia. {reason}',+ 'memoryEngine.fallback':+ 'Memori dijeda: {engine} tidak tersedia, sehingga tidak ada yang disimpan atau diingat sampai kembali tersedia. {reason}','memoryEngine.paused': 'Memori dijeda','memoryEngine.dialog.cancelMigration': 'Batalkan penyalinan','memoryEngine.lastError': 'Permintaan terakhir ke mesin memori gagal. Periksa pengaturan mesin.',diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex 1449b2269d..02784d9e3e 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -7414,7 +7414,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'Chiave API (facoltativa)','memoryEngine.keySaved': 'Una chiave è salvata. Lascia vuoto per mantenerla.','memoryEngine.keySavedPlaceholder': 'Salvata (nascosta)',- 'memoryEngine.fallback': 'La memoria è in pausa: {engine} non è disponibile, quindi nulla viene salvato o richiamato finché non torna disponibile. {reason}',+ 'memoryEngine.fallback':+ 'La memoria è in pausa: {engine} non è disponibile, quindi nulla viene salvato o richiamato finché non torna disponibile. {reason}','memoryEngine.paused': 'La memoria è in pausa','memoryEngine.dialog.cancelMigration': 'Annulla copia','memoryEngine.lastError':diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex db854f9036..01049567ee 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -7202,7 +7202,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API 키(선택)','memoryEngine.keySaved': '키가 저장되어 있습니다. 유지하려면 비워 두세요.','memoryEngine.keySavedPlaceholder': '저장됨(숨김)',- 'memoryEngine.fallback': '메모리가 일시 중지되었습니다. {engine}을(를) 사용할 수 없어 다시 사용할 수 있을 때까지 저장이나 회상이 이루어지지 않습니다. {reason}',+ 'memoryEngine.fallback':+ '메모리가 일시 중지되었습니다. {engine}을(를) 사용할 수 없어 다시 사용할 수 있을 때까지 저장이나 회상이 이루어지지 않습니다. {reason}','memoryEngine.paused': '메모리가 일시 중지되었습니다','memoryEngine.dialog.cancelMigration': '복사 취소','memoryEngine.lastError': '마지막 메모리 엔진 요청이 실패했습니다. 엔진 설정을 확인하세요.',diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.tsindex fbd2f2709f..e6b5be7a7f 100644--- a/app/src/lib/i18n/pl.ts+++ b/app/src/lib/i18n/pl.ts@@ -7391,7 +7391,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'Klucz API (opcjonalnie)','memoryEngine.keySaved': 'Klucz jest zapisany. Zostaw puste, aby go zachować.','memoryEngine.keySavedPlaceholder': 'Zapisany (ukryty)',- 'memoryEngine.fallback': 'Pamięć jest wstrzymana: {engine} jest niedostępny, więc nic nie jest zapisywane ani przywoływane, dopóki nie wróci. {reason}',+ 'memoryEngine.fallback':+ 'Pamięć jest wstrzymana: {engine} jest niedostępny, więc nic nie jest zapisywane ani przywoływane, dopóki nie wróci. {reason}','memoryEngine.paused': 'Pamięć jest wstrzymana','memoryEngine.dialog.cancelMigration': 'Anuluj kopiowanie','memoryEngine.lastError':diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex 915e394c6e..d0c804b1bb 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -7404,7 +7404,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'Chave de API (opcional)','memoryEngine.keySaved': 'Há uma chave salva. Deixe em branco para mantê-la.','memoryEngine.keySavedPlaceholder': 'Salva (oculta)',- 'memoryEngine.fallback': 'A memória está em pausa: {engine} está indisponível, então nada é salvo ou recuperado até que volte. {reason}',+ 'memoryEngine.fallback':+ 'A memória está em pausa: {engine} está indisponível, então nada é salvo ou recuperado até que volte. {reason}','memoryEngine.paused': 'A memória está em pausa','memoryEngine.dialog.cancelMigration': 'Cancelar cópia','memoryEngine.lastError':diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.tsindex 4e862a962a..2815c4e45b 100644--- a/app/src/lib/i18n/ru.ts+++ b/app/src/lib/i18n/ru.ts@@ -7359,7 +7359,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API-ключ (необязательно)','memoryEngine.keySaved': 'Ключ сохранён. Оставьте поле пустым, чтобы сохранить его.','memoryEngine.keySavedPlaceholder': 'Сохранён (скрыт)',- 'memoryEngine.fallback': 'Память приостановлена: {engine} недоступен, поэтому ничего не сохраняется и не вспоминается, пока он не вернётся. {reason}',+ 'memoryEngine.fallback':+ 'Память приостановлена: {engine} недоступен, поэтому ничего не сохраняется и не вспоминается, пока он не вернётся. {reason}','memoryEngine.paused': 'Память приостановлена','memoryEngine.dialog.cancelMigration': 'Отменить копирование','memoryEngine.lastError':diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.tsindex 5e184b842c..5e9667e27a 100644--- a/app/src/lib/i18n/zh-CN.ts+++ b/app/src/lib/i18n/zh-CN.ts@@ -6906,7 +6906,8 @@ const messages: TranslationMap = {'memoryEngine.apiKeyOptional': 'API 密钥(可选)','memoryEngine.keySaved': '已保存密钥。留空则保持不变。','memoryEngine.keySavedPlaceholder': '已保存(已隐藏)',- 'memoryEngine.fallback': '记忆已暂停:{engine} 不可用,在其恢复之前不会保存或回忆任何内容。{reason}',+ 'memoryEngine.fallback':+ '记忆已暂停:{engine} 不可用,在其恢复之前不会保存或回忆任何内容。{reason}','memoryEngine.paused': '记忆已暂停','memoryEngine.dialog.cancelMigration': '取消复制','memoryEngine.lastError': '最近一次记忆引擎请求失败。请检查引擎设置。',