fix: detach all memory tools when enabling memfs (#900)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Kevin Lin
2026-02-10 16:04:28 -08:00
committed by GitHub
parent 394aaf6777
commit f78d864f2d
5 changed files with 107 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
import { describe, expect, test } from "bun:test";
import { isMemoryTool } from "../../cli/helpers/toolNameMapping";
describe("toolNameMapping.isMemoryTool", () => {
test("recognizes all supported memory tool names", () => {
expect(isMemoryTool("memory")).toBe(true);
expect(isMemoryTool("memory_apply_patch")).toBe(true);
expect(isMemoryTool("memory_insert")).toBe(true);
expect(isMemoryTool("memory_replace")).toBe(true);
expect(isMemoryTool("memory_rethink")).toBe(true);
});
test("returns false for non-memory tools", () => {
expect(isMemoryTool("bash")).toBe(false);
expect(isMemoryTool("web_search")).toBe(false);
});
});