Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(memory): remove unused safeInvoke imports\n\nRemove stale safeInvoke imports and test references from the memory command module. This keeps the implementation and tests aligned with their current dependencies.\n\nAuto-committed-on: dragonfly\n

Steven Enamakelea310560211f
diff --git a/app/src/utils/tauriCommands/memory.test.ts b/app/src/utils/tauriCommands/memory.test.ts
index 19e80c2b4a..db74f52777 100644
--- a/app/src/utils/tauriCommands/memory.test.ts
+++ b/app/src/utils/tauriCommands/memory.test.ts
@@ -4,7 +4,7 @@
import { beforeEach, describe, expect, type Mock, test, vi } from 'vitest';
import { callCoreRpc } from '../../services/coreRpcClient';
-import { isTauri, safeInvoke } from './common';
+import { isTauri } from './common';
import {
aiListMemoryFiles,
memoryLearnAll,
@@ -17,7 +17,6 @@ vi.mock('./common', () => ({ isTauri: vi.fn(() => true), safeInvoke: vi.fn() }))
const mockCallCoreRpc = callCoreRpc as Mock;
const mockIsTauri = isTauri as Mock;
-const mockSafeInvoke = safeInvoke as Mock;
beforeEach(() => {
vi.clearAllMocks();
diff --git a/app/src/utils/tauriCommands/memory.ts b/app/src/utils/tauriCommands/memory.ts
index 56bebd83a6..659e5b3de4 100644
--- a/app/src/utils/tauriCommands/memory.ts
+++ b/app/src/utils/tauriCommands/memory.ts
@@ -2,7 +2,7 @@
* Memory subsystem commands.
*/
import { callCoreRpc } from '../../services/coreRpcClient';
-import { isTauri, safeInvoke } from './common';
+import { isTauri } from './common';
export interface MemoryDebugDocument {
documentId: string;