Merge d905e4c5d58b37201aa8d51b25325226519b48b6 into 5e417b44e1540f528d2ae63e3e20229a902d1db2

This commit is contained in:
jarvis2026-dot 2026-03-20 19:56:25 -07:00 committed by GitHub
commit 44af190ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,7 @@ export function wrapHostEditToolWithPostWriteRecovery(
oldText !== undefined && oldText.length > 0 && content.includes(oldText);
if (hasNew && !stillHasOld) {
return {
isError: false,
content: [
{
type: "text",

View File

@ -61,6 +61,8 @@ describe("createHostWorkspaceEditTool post-write recovery", () => {
: [];
const textBlock = content.find((b) => b?.type === "text" && typeof b.text === "string");
expect(textBlock?.text).toContain("Successfully replaced text");
// isError must be explicitly false so the framework does not surface a false failure notification
expect((result as { isError?: unknown }).isError).toBe(false);
});
it("rethrows when file on disk does not contain newText", async () => {