fix(coding-agent): allow extra edit replacement fields

This commit is contained in:
Armin Ronacher
2026-07-04 01:52:17 +02:00
parent d53b567601
commit a1b336d73e
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ const replaceEditSchema = Type.Object(
}),
newText: Type.String({ description: "Replacement text for this targeted edit." }),
},
{ additionalProperties: false },
{},
);
const editSchema = Type.Object(
@@ -49,7 +49,7 @@ const editSchema = Type.Object(
"One or more targeted replacements. Each edit is matched against the original file, not incrementally. Do not include overlapping or nested edits. If two changes touch the same block or nearby lines, merge them into one edit instead.",
}),
},
{ additionalProperties: false },
{},
);
export type EditToolInput = Static<typeof editSchema>;