feat: memory filesystem sync (#905)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
11
src/index.ts
11
src/index.ts
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user