feat: auto-enable memfs from server-side tag on new machines (#1063)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-20 12:57:40 -08:00
committed by GitHub
parent 4569382d20
commit a13fb37d87
4 changed files with 41 additions and 14 deletions

View File

@@ -916,14 +916,14 @@ export async function handleHeadlessCommand(
const isSubagent = process.env.LETTA_CODE_AGENT_ROLE === "subagent";
// Apply memfs flag if explicitly specified (memfs is opt-in via /memfs enable or --memfs)
// Apply memfs flags and auto-enable from server tag when local settings are missing.
try {
const { applyMemfsFlags } = await import("./agent/memoryFilesystem");
const memfsResult = await applyMemfsFlags(
agent.id,
memfsFlag,
noMemfsFlag,
{ pullOnExistingRepo: true },
{ pullOnExistingRepo: true, agentTags: agent.tags },
);
if (memfsResult.pullSummary?.includes("CONFLICT")) {
console.error(