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

@@ -4,6 +4,7 @@
*/
import { isInteractiveApprovalTool } from "../../tools/interactivePolicy";
import { MEMORY_TOOL_NAMES } from "../../tools/toolset";
/**
* Maps internal tool names to user-friendly display names.
@@ -141,7 +142,7 @@ export function alwaysRequiresUserInput(name: string): boolean {
* Checks if a tool is a memory tool (server-side memory management)
*/
export function isMemoryTool(name: string): boolean {
return name === "memory" || name === "memory_apply_patch";
return MEMORY_TOOL_NAMES.has(name);
}
/**