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
fix(memory): report refused content after a switch, keep the replay choice
Shanu61d72c181fb2
diff --git a/app/src/components/settings/panels/MemoryEnginePanel.test.tsx b/app/src/components/settings/panels/MemoryEnginePanel.test.tsxindex add403aa4e..204d905f1b 100644--- a/app/src/components/settings/panels/MemoryEnginePanel.test.tsx+++ b/app/src/components/settings/panels/MemoryEnginePanel.test.tsx@@ -13,9 +13,9 @@ import type {} from '../../../utils/tauriCommands/memoryEngine';import { resetMemoryEngineCacheForTests } from '../../intelligence/useMemoryEngineCapabilities';import MemoryEnginePanel, {+ copyCompletion,MIGRATE_JOB_STORAGE_KEY,MIGRATE_POLL_INTERVAL_MS,- stepsLeftBehind,} from './MemoryEnginePanel';const hoisted = vi.hoisted(() => ({@@ -370,6 +370,53 @@ describe('MemoryEnginePanel', () => {fireEvent.click(screen.getByTestId('memory-engine-switch'));fireEvent.click(await screen.findByTestId('memory-engine-copy-switch'));await waitFor(() => expect(hoisted.storage.get(MIGRATE_JOB_STORAGE_KEY)).toContain('job-p'));+ expect(JSON.parse(hoisted.storage.get(MIGRATE_JOB_STORAGE_KEY) ?? '{}')).toEqual({+ jobId: 'job-p',+ driver: 'mem0',+ replayContent: true,+ });+ });++ test('a resumed migration keeps the replay choice it was started with', async () => {+ vi.useFakeTimers();+ hoisted.storage.set(+ MIGRATE_JOB_STORAGE_KEY,+ JSON.stringify({ jobId: 'job-o', driver: 'mem0', replayContent: false })+ );+ const skippedContent = {+ step: 'content',+ skipped_because: 'the caller chose not to re-send content',+ read: 0,+ written: 0,+ unchanged: 0,+ failed: 0,+ errors: [],+ };+ hoisted.status+ .mockResolvedValueOnce({ state: 'running', copied: 1, total: null, error: null })+ .mockResolvedValue({+ state: 'done',+ copied: 1,+ total: null,+ error: null,+ steps: [skippedContent],+ });+ renderWithProviders(<MemoryEnginePanel />);+ await act(async () => {+ await vi.advanceTimersByTimeAsync(0);+ });+ expect(screen.getByTestId('memory-engine-progress')).toBeInTheDocument();+ hoisted.get.mockResolvedValue(state({ driver: 'mem0', endpoint: 'https://api.mem0.ai' }));+ await act(async () => {+ await vi.advanceTimersByTimeAsync(MIGRATE_POLL_INTERVAL_MS);+ });+ await act(async () => {+ await vi.advanceTimersByTimeAsync(0);+ });+ expect(+ screen.queryByTestId('memory-engine-left-behind'),+ 'content the user chose not to re-send is not reported as left behind'+ ).not.toBeInTheDocument();});test('the copy can leave synced content behind, and the hint shows for hosted engines', async () => {@@ -432,7 +479,7 @@ describe('MemoryEnginePanel', () => {await vi.advanceTimersByTimeAsync(MIGRATE_POLL_INTERVAL_MS);});expect(screen.getByTestId('memory-engine-progress-line')).toHaveTextContent(- 'Copying conversation history… 40 so far'+ 'Copying conversation history… 40 copied so far');});@@ -453,7 +500,11 @@ describe('MemoryEnginePanel', () => {copied: 4,total: null,error: null,- steps: [skipped('goals'), skipped('profile')],+ steps: [+ skipped('goals'),+ skipped('profile'),+ { ...skipped('content'), skipped_because: null, read: 5, written: 3, failed: 2 },+ ],});renderWithProviders(<MemoryEnginePanel />);await act(async () => {@@ -478,29 +529,42 @@ describe('MemoryEnginePanel', () => {expect(screen.getByTestId('memory-engine-left-behind')).toHaveTextContent('goals, learned profile');+ expect(screen.getByTestId('memory-engine-content-refused')).toHaveTextContent('(2)');});});-describe('stepsLeftBehind', () => {- const step = (name: 'content' | 'goals', skipped: string | null) => ({+describe('copyCompletion', () => {+ const step = (name: 'content' | 'goals', skipped: string | null, failed = 0) => ({step: name,skipped_because: skipped,read: 0,written: 0,unchanged: 0,- failed: 0,+ failed,errors: [],});+ const done = (steps: ReturnType<typeof step>[]) => ({+ state: 'done' as const,+ copied: 0,+ total: null,+ error: null,+ steps,+ });test('content the user chose not to re-send is not left behind', () => {- const status = {- state: 'done' as const,- copied: 0,- total: null,- error: null,- steps: [step('content', 'the caller chose not to re-send content'), step('goals', null)],- };- expect(stepsLeftBehind(status, false)).toEqual([]);- expect(stepsLeftBehind(status, true)).toEqual(['content']);+ const status = done([+ step('content', 'the caller chose not to re-send content'),+ step('goals', null),+ ]);+ expect(copyCompletion(status, false)).toEqual({ leftBehind: [], refused: 0 });+ expect(copyCompletion(status, true)).toEqual({ leftBehind: ['content'], refused: 0 });+ });++ test('content the new engine refused is counted', () => {+ const status = done([+ step('goals', 'the target does not serve goals'),+ step('content', null, 3),+ ]);+ expect(copyCompletion(status, true)).toEqual({ leftBehind: ['goals'], refused: 3 });});});diff --git a/app/src/components/settings/panels/MemoryEnginePanel.tsx b/app/src/components/settings/panels/MemoryEnginePanel.tsxindex 1603a48914..b4b28fa1b0 100644--- a/app/src/components/settings/panels/MemoryEnginePanel.tsx+++ b/app/src/components/settings/panels/MemoryEnginePanel.tsx@@ -47,41 +47,68 @@ import {const log = debug('settings:memory-engine');/**- * The steps a finished copy skipped because the new engine (or the old one)- * does not serve them. Content the user chose not to re-send is not "left- * behind": they asked for that.+ * What a finished copy could not carry: the steps it skipped because an engine+ * does not serve them, and the content the new engine refused. Content the+ * user chose not to re-send is not left behind: they asked for that.*/-export function stepsLeftBehind(+export interface CopyCompletion {+ leftBehind: MemoryEngineMigrateStep[];+ refused: number;+}++export function copyCompletion(status: MemoryEngineMigrateStatus,replayContent: boolean-): MemoryEngineMigrateStep[] {- return (status.steps ?? [])- .filter(step => step.skipped_because !== null)- .filter(step => replayContent || step.step !== 'content')- .map(step => step.step);+): CopyCompletion {+ const steps = status.steps ?? [];+ return {+ leftBehind: steps+ .filter(step => step.skipped_because !== null)+ .filter(step => replayContent || step.step !== 'content')+ .map(step => step.step),+ // Only re-sent content may fail without holding the switch back, so on a+ // finished job this is the content the new engine refused.+ refused: steps.reduce((sum, step) => sum + step.failed, 0),+ };}/** How often a running migration is polled. */export const MIGRATE_POLL_INTERVAL_MS = 1000;-/** userScopedStorage key of the running migration `{ jobId, driver }`. */+/** userScopedStorage key of the running migration `{ jobId, driver, replayContent }`. */export const MIGRATE_JOB_STORAGE_KEY = 'memoryEngine.migrateJob';-async function storeJob(jobId: string, driver: string): Promise<void> {- await userScopedStorage.setItem(MIGRATE_JOB_STORAGE_KEY, JSON.stringify({ jobId, driver }));+interface StoredJob {+ jobId: string;+ driver: string;+ /** The content re-send choice the job was started with. */+ replayContent: boolean;+}++async function storeJob(job: StoredJob): Promise<void> {+ await userScopedStorage.setItem(MIGRATE_JOB_STORAGE_KEY, JSON.stringify(job));}async function clearStoredJob(): Promise<void> {await userScopedStorage.removeItem(MIGRATE_JOB_STORAGE_KEY);}-async function readStoredJob(): Promise<{ jobId: string; driver: string } | null> {+async function readStoredJob(): Promise<StoredJob | null> {try {const raw = await userScopedStorage.getItem(MIGRATE_JOB_STORAGE_KEY);if (!raw) return null;- const parsed = JSON.parse(raw) as { jobId?: unknown; driver?: unknown };+ const parsed = JSON.parse(raw) as {+ jobId?: unknown;+ driver?: unknown;+ replayContent?: unknown;+ };return typeof parsed.jobId === 'string' && typeof parsed.driver === 'string'- ? { jobId: parsed.jobId, driver: parsed.driver }+ ? {+ jobId: parsed.jobId,+ driver: parsed.driver,+ // A job stored before the choice existed re-sent content.+ replayContent: parsed.replayContent !== false,+ }: null;} catch {return null;@@ -129,7 +156,7 @@ export default function MemoryEnginePanel() {// Re-send synced content with the copy (the content step); on unless the user opts out.const [replayContent, setReplayContent] = useState(true);// What a finished copy could not carry, shown once the switch is done.- const [leftBehind, setLeftBehind] = useState<MemoryEngineMigrateStep[]>([]);+ const [completion, setCompletion] = useState<CopyCompletion | null>(null);// The replay choice the running job was started with (polling outlives the toggle).const replayRequestedRef = useRef(true);const mounted = useRef(true);@@ -166,8 +193,15 @@ export default function MemoryEnginePanel() {const status = await memoryEngineMigrateStatus(stored.jobId);if (cancelled || !mounted.current) return;if (status.state === 'running') {- log('resuming migration job=%s driver=%s', stored.jobId, stored.driver);+ log(+ 'resuming migration job=%s driver=%s replay_content=%s',+ stored.jobId,+ stored.driver,+ stored.replayContent+ );targetDriverRef.current = stored.driver;+ replayRequestedRef.current = stored.replayContent;+ setReplayContent(stored.replayContent);setSelectedId(stored.driver);setMigration(status);setSaving(true);@@ -272,7 +306,7 @@ export default function MemoryEnginePanel() {setError(null);try {targetDriverRef.current = target.driver;- setLeftBehind([]);+ setCompletion(null);replayRequestedRef.current = replayContent;const { job_id } = await memoryEngineMigrate(target, { replayContent });log(@@ -284,7 +318,7 @@ export default function MemoryEnginePanel() {if (!mounted.current) return;setMigration({ state: 'running', copied: 0, total: null, error: null });setJobId(job_id);- void storeJob(job_id, target.driver);+ void storeJob({ jobId: job_id, driver: target.driver, replayContent });} catch (err) {log('migrate start failed: %o', err);if (mounted.current) {@@ -314,7 +348,7 @@ export default function MemoryEnginePanel() {log('migrate done job=%s copied=%d', jobId, status.copied);invalidateMemoryEngine();await finishSwitch(targetDriverRef.current);- if (mounted.current) setLeftBehind(stepsLeftBehind(status, replayRequestedRef.current));+ if (mounted.current) setCompletion(copyCompletion(status, replayRequestedRef.current));} else if (status.state === 'cancelled') {log('migrate cancelled job=%s', jobId);void clearStoredJob();@@ -385,13 +419,22 @@ export default function MemoryEnginePanel() {</Alert>) : null}- {leftBehind.length > 0 ? (+ {completion && (completion.leftBehind.length > 0 || completion.refused > 0) ? (<Alert variant="info" data-testid="memory-engine-left-behind"><AlertDescription>- {t('memoryEngine.notCopied').replace(- '{items}',- leftBehind.map(step => t(`memoryEngine.step.${step}`)).join(', ')- )}+ {completion.leftBehind.length > 0 ? (+ <p>+ {t('memoryEngine.notCopied').replace(+ '{items}',+ completion.leftBehind.map(step => t(`memoryEngine.step.${step}`)).join(', ')+ )}+ </p>+ ) : null}+ {completion.refused > 0 ? (+ <p data-testid="memory-engine-content-refused">+ {t('memoryEngine.contentRefused').replace('{count}', String(completion.refused))}+ </p>+ ) : null}</AlertDescription></Alert>) : null}diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.tsindex 3846a1cfb6..7a6c778afc 100644--- a/app/src/lib/i18n/ar.ts+++ b/app/src/lib/i18n/ar.ts@@ -5188,7 +5188,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'أعد أيضًا إرسال المحتوى المُزامَن ليعيد المحرك الجديد بناء ملخصاته','memoryEngine.dialog.replayContentHint': 'إعادة قراءة المحتوى تستهلك رصيد OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'جارٍ نسخ {step}… {count} حتى الآن',+ 'memoryEngine.dialog.stepProgress': 'جارٍ نسخ {step}… تم نسخ {count} حتى الآن','memoryEngine.step.records': 'الذكريات','memoryEngine.step.documents': 'عناوين المستندات ووسومها','memoryEngine.step.goals': 'الأهداف',@@ -5196,6 +5196,8 @@ const messages: TranslationMap = {'memoryEngine.step.episodic': 'سجل المحادثات','memoryEngine.step.content': 'المحتوى المُزامَن','memoryEngine.notCopied': 'تم التبديل. لا يدعم المحرك الجديد ما يلي، لذلك لم يُنسخ: {items}.',+ 'memoryEngine.contentRefused':+ 'رفض المحرك الجديد بعض المحتوى المُزامَن ({count}). لا يزال محركك السابق يحتفظ به، ويمكن لمزامنته التالية أن تجلبه مرة أخرى.','memoryEngine.dialog.lacking': 'لا يدعم المحرك الجديد هذه الميزات الموجودة في محركك الحالي:','memoryEngine.error.insufficientCredits':'نفد رصيد OpenHuman لديك. أضف رصيدًا لاستخدام هذا المحرك.',diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.tsindex 55fab9e960..078cc4da31 100644--- a/app/src/lib/i18n/bn.ts+++ b/app/src/lib/i18n/bn.ts@@ -5284,7 +5284,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'সিঙ্ক করা কনটেন্টও আবার পাঠান, যাতে নতুন ইঞ্জিন তার সারাংশ নতুন করে তৈরি করে','memoryEngine.dialog.replayContentHint': 'কনটেন্ট আবার পড়তে OpenHuman ক্রেডিট খরচ হয়।',- 'memoryEngine.dialog.stepProgress': '{step} কপি হচ্ছে… এখন পর্যন্ত {count}',+ 'memoryEngine.dialog.stepProgress': '{step} কপি হচ্ছে… এখন পর্যন্ত কপি হয়েছে: {count}','memoryEngine.step.records': 'স্মৃতি','memoryEngine.step.documents': 'ডকুমেন্টের শিরোনাম ও ট্যাগ','memoryEngine.step.goals': 'লক্ষ্য',@@ -5293,6 +5293,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'সিঙ্ক করা কনটেন্ট','memoryEngine.notCopied':'পরিবর্তন হয়েছে। নতুন ইঞ্জিন এগুলো সমর্থন করে না, তাই কপি করা হয়নি: {items}।',+ 'memoryEngine.contentRefused':+ 'নতুন ইঞ্জিন কিছু সিঙ্ক করা কনটেন্ট নেয়নি ({count})। আপনার আগের ইঞ্জিনে সেগুলো এখনও আছে, আর পরের সিঙ্কে সেগুলো আবার আসতে পারে।','memoryEngine.dialog.lacking':'নতুন ইঞ্জিন আপনার বর্তমান ইঞ্জিনের এই বৈশিষ্ট্যগুলো সমর্থন করে না:','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.tsindex f3beed1af4..f9419f4862 100644--- a/app/src/lib/i18n/de.ts+++ b/app/src/lib/i18n/de.ts@@ -5439,7 +5439,7 @@ const messages: TranslationMap = {'Synchronisierte Inhalte erneut senden, damit die neue Engine ihre Zusammenfassungen neu aufbaut','memoryEngine.dialog.replayContentHint':'Das erneute Lesen von Inhalten verbraucht OpenHuman-Credits.',- 'memoryEngine.dialog.stepProgress': '{step} wird kopiert … bisher {count}',+ 'memoryEngine.dialog.stepProgress': '{step} wird kopiert … bisher kopiert: {count}','memoryEngine.step.records': 'Erinnerungen','memoryEngine.step.documents': 'Dokumenttitel und Tags','memoryEngine.step.goals': 'Ziele',@@ -5448,6 +5448,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'synchronisierte Inhalte','memoryEngine.notCopied':'Gewechselt. Die neue Engine unterstützt Folgendes nicht, daher wurde es nicht kopiert: {items}.',+ 'memoryEngine.contentRefused':+ 'Die neue Engine hat einige synchronisierte Inhalte abgelehnt ({count}). Deine vorherige Engine behält sie, und die nächste Synchronisierung kann sie erneut bringen.','memoryEngine.dialog.lacking':'Die neue Engine unterstützt diese Funktionen deiner aktuellen Engine nicht:','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 85e036f25a..d34c36575d 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -711,7 +711,6 @@ const en: TranslationMap = {'memory.analyzeNow': 'Analyze Now','namespaceOverview.entitiesShort': '{count} ent.',-// Memory Tree status panel (#1856 Part 1)'memoryTree.status.title': 'Memory Tree','memoryTree.status.autoSyncLabel': 'Auto-sync',@@ -5595,7 +5594,7 @@ const en: TranslationMap = {'memoryEngine.dialog.replayContent':'Also re-send synced content so the new engine rebuilds its summaries','memoryEngine.dialog.replayContentHint': 'Re-reading content uses OpenHuman credits.',- 'memoryEngine.dialog.stepProgress': 'Copying {step}… {count} so far',+ 'memoryEngine.dialog.stepProgress': 'Copying {step}… {count} copied so far','memoryEngine.step.records': 'memories','memoryEngine.step.documents': 'document titles and tags','memoryEngine.step.goals': 'goals',@@ -5604,6 +5603,8 @@ const en: TranslationMap = {'memoryEngine.step.content': 'synced content','memoryEngine.notCopied':'Switched. The new engine does not support these, so they were not copied: {items}.',+ 'memoryEngine.contentRefused':+ 'The new engine refused some synced content ({count}). Your previous engine still keeps it, and its next sync can bring it again.','memoryEngine.dialog.lacking':'The new engine does not support these features of your current engine:','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.tsindex 4702d3ec50..ce2b2aa6ae 100644--- a/app/src/lib/i18n/es.ts+++ b/app/src/lib/i18n/es.ts@@ -5397,7 +5397,7 @@ const messages: TranslationMap = {'Reenviar también el contenido sincronizado para que el nuevo motor reconstruya sus resúmenes','memoryEngine.dialog.replayContentHint':'Volver a leer el contenido consume créditos de OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Copiando {step}… {count} hasta ahora',+ 'memoryEngine.dialog.stepProgress': 'Copiando {step}: {count} elementos copiados','memoryEngine.step.records': 'recuerdos','memoryEngine.step.documents': 'títulos y etiquetas de documentos','memoryEngine.step.goals': 'objetivos',@@ -5406,6 +5406,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'contenido sincronizado','memoryEngine.notCopied':'Cambio hecho. El nuevo motor no admite lo siguiente, así que no se copió: {items}.',+ 'memoryEngine.contentRefused':+ 'El nuevo motor rechazó parte del contenido sincronizado ({count}). Tu motor anterior lo conserva, y su próxima sincronización puede volver a traerlo.','memoryEngine.dialog.lacking': 'El nuevo motor no admite estas funciones de tu motor actual:','memoryEngine.error.insufficientCredits':'Te has quedado sin créditos de OpenHuman. Añade créditos para usar este motor.',diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.tsindex 7ce39b7a3e..be37bf056a 100644--- a/app/src/lib/i18n/fr.ts+++ b/app/src/lib/i18n/fr.ts@@ -5420,7 +5420,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'Renvoyer aussi le contenu synchronisé pour que le nouveau moteur reconstruise ses résumés','memoryEngine.dialog.replayContentHint': 'Relire le contenu consomme des crédits OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Copie de {step}… {count} pour le moment',+ 'memoryEngine.dialog.stepProgress': 'Copie de {step}… éléments copiés : {count}','memoryEngine.step.records': 'souvenirs','memoryEngine.step.documents': 'titres et étiquettes des documents','memoryEngine.step.goals': 'objectifs',@@ -5429,6 +5429,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'contenu synchronisé','memoryEngine.notCopied':"Changement effectué. Le nouveau moteur ne prend pas en charge ces éléments, ils n'ont donc pas été copiés : {items}.",+ 'memoryEngine.contentRefused':+ 'Le nouveau moteur a refusé une partie du contenu synchronisé ({count}). Votre moteur précédent le conserve, et sa prochaine synchronisation peut le ramener.','memoryEngine.dialog.lacking':'Le nouveau moteur ne prend pas en charge ces fonctionnalités de votre moteur actuel :','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.tsindex a26b2590de..09aa2b876d 100644--- a/app/src/lib/i18n/hi.ts+++ b/app/src/lib/i18n/hi.ts@@ -5286,7 +5286,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'सिंक की गई सामग्री भी दोबारा भेजें ताकि नया इंजन अपने सारांश फिर से बनाए','memoryEngine.dialog.replayContentHint': 'सामग्री दोबारा पढ़ने में OpenHuman क्रेडिट लगते हैं।',- 'memoryEngine.dialog.stepProgress': '{step} कॉपी हो रहा है… अब तक {count}',+ 'memoryEngine.dialog.stepProgress': '{step} कॉपी हो रहा है… अब तक कॉपी हुए: {count}','memoryEngine.step.records': 'यादें','memoryEngine.step.documents': 'दस्तावेज़ों के शीर्षक और टैग','memoryEngine.step.goals': 'लक्ष्य',@@ -5295,6 +5295,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'सिंक की गई सामग्री','memoryEngine.notCopied':'स्विच हो गया। नया इंजन इनका समर्थन नहीं करता, इसलिए ये कॉपी नहीं हुए: {items}।',+ 'memoryEngine.contentRefused':+ 'नए इंजन ने कुछ सिंक की गई सामग्री स्वीकार नहीं की ({count})। आपका पिछला इंजन उसे अभी भी रखता है, और अगला सिंक उसे फिर से ला सकता है।','memoryEngine.dialog.lacking': 'नया इंजन आपके मौजूदा इंजन की इन सुविधाओं का समर्थन नहीं करता:','memoryEngine.error.insufficientCredits':'आपके OpenHuman क्रेडिट खत्म हो गए हैं। इस इंजन का उपयोग करने के लिए क्रेडिट जोड़ें।',diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.tsindex 5f35698082..89c01742e3 100644--- a/app/src/lib/i18n/id.ts+++ b/app/src/lib/i18n/id.ts@@ -5325,7 +5325,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'Kirim ulang juga konten yang disinkronkan agar mesin baru menyusun ulang ringkasannya','memoryEngine.dialog.replayContentHint': 'Membaca ulang konten menggunakan kredit OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Menyalin {step}… {count} sejauh ini',+ 'memoryEngine.dialog.stepProgress': 'Menyalin {step}… tersalin sejauh ini: {count}','memoryEngine.step.records': 'memori','memoryEngine.step.documents': 'judul dan tag dokumen','memoryEngine.step.goals': 'tujuan',@@ -5334,6 +5334,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'konten yang disinkronkan','memoryEngine.notCopied':'Sudah beralih. Mesin baru tidak mendukung hal berikut, jadi tidak disalin: {items}.',+ 'memoryEngine.contentRefused':+ 'Mesin baru menolak sebagian konten yang disinkronkan ({count}). Mesin Anda sebelumnya masih menyimpannya, dan sinkronisasi berikutnya dapat membawanya lagi.','memoryEngine.dialog.lacking': 'Mesin baru tidak mendukung fitur mesin Anda saat ini berikut:','memoryEngine.error.insufficientCredits':'Kredit OpenHuman Anda habis. Tambahkan kredit untuk menggunakan mesin ini.',diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.tsindex 43971fa330..19a169f701 100644--- a/app/src/lib/i18n/it.ts+++ b/app/src/lib/i18n/it.ts@@ -5383,7 +5383,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'Invia di nuovo anche i contenuti sincronizzati, così il nuovo motore ricostruisce i suoi riassunti','memoryEngine.dialog.replayContentHint': 'Rileggere i contenuti consuma crediti OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Copia di {step}… finora {count}',+ 'memoryEngine.dialog.stepProgress': 'Copia di {step}… elementi copiati finora: {count}','memoryEngine.step.records': 'ricordi','memoryEngine.step.documents': 'titoli e tag dei documenti','memoryEngine.step.goals': 'obiettivi',@@ -5392,6 +5392,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'contenuti sincronizzati','memoryEngine.notCopied':'Passaggio completato. Il nuovo motore non supporta questi elementi, quindi non sono stati copiati: {items}.',+ 'memoryEngine.contentRefused':+ 'Il nuovo motore ha rifiutato parte dei contenuti sincronizzati ({count}). Il motore precedente li conserva ancora e la prossima sincronizzazione può riportarli.','memoryEngine.dialog.lacking':'Il nuovo motore non supporta queste funzioni del tuo motore attuale:','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.tsindex d4e7636d14..5fb1debe45 100644--- a/app/src/lib/i18n/ko.ts+++ b/app/src/lib/i18n/ko.ts@@ -5240,7 +5240,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'동기화된 콘텐츠도 다시 보내 새 엔진이 요약을 다시 만들도록 하기','memoryEngine.dialog.replayContentHint': '콘텐츠를 다시 읽는 데 OpenHuman 크레딧이 사용됩니다.',- 'memoryEngine.dialog.stepProgress': '{step} 복사 중… 지금까지 {count}개',+ 'memoryEngine.dialog.stepProgress': '{step} 복사 중… 지금까지 {count}개 복사됨','memoryEngine.step.records': '기억','memoryEngine.step.documents': '문서 제목과 태그','memoryEngine.step.goals': '목표',@@ -5249,6 +5249,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': '동기화된 콘텐츠','memoryEngine.notCopied':'전환했습니다. 새 엔진이 다음 항목을 지원하지 않아 복사하지 않았습니다: {items}.',+ 'memoryEngine.contentRefused':+ '새 엔진이 동기화된 콘텐츠 일부를 받지 않았습니다({count}). 이전 엔진에 그대로 남아 있으며 다음 동기화 때 다시 가져올 수 있습니다.','memoryEngine.dialog.lacking': '새 엔진은 현재 엔진의 다음 기능을 지원하지 않습니다:','memoryEngine.error.insufficientCredits':'OpenHuman 크레딧이 모두 소진되었습니다. 이 엔진을 사용하려면 크레딧을 추가하세요.',diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.tsindex d6db0e6b3e..fc67c27fed 100644--- a/app/src/lib/i18n/pl.ts+++ b/app/src/lib/i18n/pl.ts@@ -5363,7 +5363,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'Wyślij też ponownie zsynchronizowane treści, aby nowy silnik odbudował swoje podsumowania','memoryEngine.dialog.replayContentHint': 'Ponowne odczytanie treści zużywa kredyty OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Kopiowanie: {step}… dotąd {count}',+ 'memoryEngine.dialog.stepProgress': 'Kopiowanie: {step}… skopiowano dotąd: {count}','memoryEngine.step.records': 'wspomnienia','memoryEngine.step.documents': 'tytuły i tagi dokumentów','memoryEngine.step.goals': 'cele',@@ -5372,6 +5372,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'zsynchronizowane treści','memoryEngine.notCopied':'Przełączono. Nowy silnik nie obsługuje poniższych elementów, więc nie zostały skopiowane: {items}.',+ 'memoryEngine.contentRefused':+ 'Nowy silnik odrzucił część zsynchronizowanych treści ({count}). Poprzedni silnik nadal je przechowuje, a kolejna synchronizacja może je ponownie dostarczyć.','memoryEngine.dialog.lacking': 'Nowy silnik nie obsługuje tych funkcji Twojego obecnego silnika:','memoryEngine.error.insufficientCredits':'Skończyły Ci się kredyty OpenHuman. Dodaj kredyty, aby użyć tego silnika.',diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.tsindex 022d7ecd13..797ba1a1ce 100644--- a/app/src/lib/i18n/pt.ts+++ b/app/src/lib/i18n/pt.ts@@ -5371,7 +5371,7 @@ const messages: TranslationMap = {'memoryEngine.dialog.replayContent':'Reenviar também o conteúdo sincronizado para que o novo mecanismo reconstrua seus resumos','memoryEngine.dialog.replayContentHint': 'Reler o conteúdo consome créditos do OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Copiando {step}… {count} até agora',+ 'memoryEngine.dialog.stepProgress': 'Copiando {step}… itens copiados até agora: {count}','memoryEngine.step.records': 'memórias','memoryEngine.step.documents': 'títulos e tags dos documentos','memoryEngine.step.goals': 'objetivos',@@ -5380,6 +5380,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'conteúdo sincronizado','memoryEngine.notCopied':'Troca concluída. O novo mecanismo não oferece suporte a estes itens, então eles não foram copiados: {items}.',+ 'memoryEngine.contentRefused':+ 'O novo mecanismo recusou parte do conteúdo sincronizado ({count}). Seu mecanismo anterior ainda o mantém, e a próxima sincronização pode trazê-lo de novo.','memoryEngine.dialog.lacking':'O novo mecanismo não oferece suporte a estes recursos do seu mecanismo atual:','memoryEngine.error.insufficientCredits':diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.tsindex 0daa75d691..6f05c2ed45 100644--- a/app/src/lib/i18n/ru.ts+++ b/app/src/lib/i18n/ru.ts@@ -5344,7 +5344,7 @@ const messages: TranslationMap = {'Также заново отправить синхронизированные материалы, чтобы новый движок пересобрал свои сводки','memoryEngine.dialog.replayContentHint':'Повторное чтение материалов расходует кредиты OpenHuman.',- 'memoryEngine.dialog.stepProgress': 'Копирование: {step}… пока {count}',+ 'memoryEngine.dialog.stepProgress': 'Копирование: {step}… скопировано: {count}','memoryEngine.step.records': 'воспоминания','memoryEngine.step.documents': 'названия и теги документов','memoryEngine.step.goals': 'цели',@@ -5353,6 +5353,8 @@ const messages: TranslationMap = {'memoryEngine.step.content': 'синхронизированные материалы','memoryEngine.notCopied':'Переключено. Новый движок не поддерживает следующее, поэтому это не скопировано: {items}.',+ 'memoryEngine.contentRefused':+ 'Новый движок отклонил часть синхронизированных материалов ({count}). Предыдущий движок по-прежнему их хранит, и следующая синхронизация может доставить их снова.','memoryEngine.dialog.lacking': 'Новый движок не поддерживает эти функции вашего текущего движка:','memoryEngine.error.insufficientCredits':'Кредиты OpenHuman закончились. Пополните кредиты, чтобы использовать этот движок.',diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.tsindex 20e8afb33e..d6da477a75 100644--- a/app/src/lib/i18n/zh-CN.ts+++ b/app/src/lib/i18n/zh-CN.ts@@ -5003,7 +5003,7 @@ const messages: TranslationMap = {'会复制你的记忆、文档标题和标签、目标、学到的个人资料以及对话历史。','memoryEngine.dialog.replayContent': '同时重新发送已同步的内容,让新引擎重建摘要','memoryEngine.dialog.replayContentHint': '重新读取内容会消耗 OpenHuman 额度。',- 'memoryEngine.dialog.stepProgress': '正在复制{step}… 目前 {count} 条',+ 'memoryEngine.dialog.stepProgress': '正在复制{step}… 已复制 {count} 条','memoryEngine.step.records': '记忆','memoryEngine.step.documents': '文档标题和标签','memoryEngine.step.goals': '目标',@@ -5011,6 +5011,8 @@ const messages: TranslationMap = {'memoryEngine.step.episodic': '对话历史','memoryEngine.step.content': '已同步的内容','memoryEngine.notCopied': '已切换。新引擎不支持以下内容,因此未复制:{items}。',+ 'memoryEngine.contentRefused':+ '新引擎拒收了部分已同步的内容({count})。之前的引擎仍保留这些内容,下次同步时可以再次带来。','memoryEngine.dialog.lacking': '新引擎不支持当前引擎的以下功能:','memoryEngine.error.insufficientCredits': '你的 OpenHuman 额度已用完。请充值后再使用此引擎。','memoryEngine.error.sessionExpired': '会话已过期。请重新登录以继续。',diff --git a/vendor/tinymemory b/vendor/tinymemoryindex bc3d70de91..c9c94a9a50 160000--- a/vendor/tinymemory+++ b/vendor/tinymemory@@ -1 +1 @@-Subproject commit bc3d70de918e765657abd73958ede99d6471156a+Subproject commit c9c94a9a506914777482c35c16a1128729ea7151