fix: normalize path separators in isMemoryDirCommand for Windows (#914)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-11 01:43:45 -08:00
committed by GitHub
parent 863973be83
commit 648d7138fc
2 changed files with 24 additions and 9 deletions

View File

@@ -248,7 +248,8 @@ describe("isReadOnlyShellCommand", () => {
describe("isMemoryDirCommand", () => {
const AGENT_ID = "agent-test-abc123";
const home = homedir();
// Normalize to forward slashes for shell command strings (even on Windows)
const home = homedir().replace(/\\/g, "/");
const memDir = `${home}/.letta/agents/${AGENT_ID}/memory`;
const worktreeDir = `${home}/.letta/agents/${AGENT_ID}/memory-worktrees`;