feat(tools): add client-side memory_apply_patch for Codex toolsets (#1485)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-03-23 14:55:37 -07:00
committed by GitHub
parent 457ccd8988
commit 7b29a0005f
17 changed files with 1290 additions and 37 deletions

View File

@@ -161,7 +161,8 @@ export const ApprovalPreview = memo(
toolName === "str_replace_editor" ||
toolName === "str_replace_based_edit_tool" ||
toolName === "apply_patch" ||
toolName === "ApplyPatch"
toolName === "ApplyPatch" ||
toolName === "memory_apply_patch"
) {
const headerText = getFileEditHeader(toolName, toolArgs);
@@ -171,7 +172,9 @@ export const ApprovalPreview = memo(
// Handle patch tools (can have multiple files)
if (
args.input &&
(toolName === "apply_patch" || toolName === "ApplyPatch")
(toolName === "apply_patch" ||
toolName === "ApplyPatch" ||
toolName === "memory_apply_patch")
) {
const operations = parsePatchOperations(args.input);