Merge d905e4c5d58b37201aa8d51b25325226519b48b6 into 5e417b44e1540f528d2ae63e3e20229a902d1db2
This commit is contained in:
commit
44af190ffe
@ -63,6 +63,7 @@ export function wrapHostEditToolWithPostWriteRecovery(
|
||||
oldText !== undefined && oldText.length > 0 && content.includes(oldText);
|
||||
if (hasNew && !stillHasOld) {
|
||||
return {
|
||||
isError: false,
|
||||
content: [
|
||||
{
|
||||
type: "text",
|
||||
|
||||
@ -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 () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user