Revert "fix: skip memfs git sync on self-hosted servers (temporary)"

This reverts commit 74e6c764d3.
This commit is contained in:
Ani
2026-03-24 15:51:36 -04:00
parent 3dc023713f
commit 0ac8ce5481
2 changed files with 3 additions and 4 deletions

View File

@@ -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);

View File

@@ -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) {