feat: memory filesystem sync (#905)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-10 18:06:05 -08:00
committed by GitHub
parent eaa813ddb9
commit d1a6eeb40a
13 changed files with 1085 additions and 3079 deletions

View File

@@ -1708,6 +1708,17 @@ async function main(): Promise<void> {
);
}
// Git-backed memory: ensure tag + repo are set up
if (settingsManager.isMemfsEnabled(agent.id)) {
const { addGitMemoryTag, isGitRepo, cloneMemoryRepo } = await import(
"./agent/memoryGit"
);
await addGitMemoryTag(agent.id);
if (!isGitRepo(agent.id)) {
await cloneMemoryRepo(agent.id);
}
}
// Check if we're resuming an existing agent
// We're resuming if:
// 1. We specified an agent ID via --agent flag (agentIdArg)