From 0ac8ce54819d6e4327016fce581beb8d47a8b4ae Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 24 Mar 2026 15:51:36 -0400 Subject: [PATCH] Revert "fix: skip memfs git sync on self-hosted servers (temporary)" This reverts commit 74e6c764d3da581012969d4f40afb67859f25255. --- src/agent/memoryFilesystem.ts | 2 +- src/cli/App.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/agent/memoryFilesystem.ts b/src/agent/memoryFilesystem.ts index 462a33a..ba2123d 100644 --- a/src/agent/memoryFilesystem.ts +++ b/src/agent/memoryFilesystem.ts @@ -348,7 +348,7 @@ export async function applyMemfsFlags( agentId, options?.agentTags ? { tags: options.agentTags } : undefined, ); - if (!isGitRepo(agentId) && (await isLettaCloud())) { + if (!isGitRepo(agentId)) { await cloneMemoryRepo(agentId); } else if (options?.pullOnExistingRepo) { const result = await pullMemory(agentId); diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 016dcbe..57f913b 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -51,7 +51,6 @@ import { ISOLATED_BLOCK_LABELS } from "../agent/memory"; import { ensureMemoryFilesystemDirs, getMemoryFilesystemRoot, - isLettaCloud, } from "../agent/memoryFilesystem"; import { getStreamToolContextId, @@ -3644,9 +3643,9 @@ export default function App({ const { isGitRepo, cloneMemoryRepo, pullMemory } = await import( "../agent/memoryGit" ); - if (!isGitRepo(agentId) && (await isLettaCloud())) { + if (!isGitRepo(agentId)) { await cloneMemoryRepo(agentId); - } else if (isGitRepo(agentId)) { + } else { await pullMemory(agentId); } } catch (err) {