Revert "fix: skip memfs git sync on self-hosted servers (temporary)"
This reverts commit 74e6c764d3.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user