From 64a8713ec4b581cadade29b711775e3876fe1619 Mon Sep 17 00:00:00 2001 From: codes-res-by-bigbrother666sh Date: Tue, 24 Mar 2026 16:26:44 +0800 Subject: [PATCH] fix(patch): regenerate 003-act-field-validation against openclaw v2026.3.13 browser-tool.test.ts upstream restructuring shifted line numbers, causing patch to fail. Manually re-applied changes and regenerated diff. --- wiseflow/patches/003-act-field-validation.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiseflow/patches/003-act-field-validation.patch b/wiseflow/patches/003-act-field-validation.patch index 13d76d08..419040f9 100644 --- a/wiseflow/patches/003-act-field-validation.patch +++ b/wiseflow/patches/003-act-field-validation.patch @@ -1,5 +1,5 @@ diff --git a/src/agents/tools/browser-tool.actions.ts b/src/agents/tools/browser-tool.actions.ts -index 8fd27500c..af0f67d3d 100644 +index a4b6cb456..5d1d37b74 100644 --- a/src/agents/tools/browser-tool.actions.ts +++ b/src/agents/tools/browser-tool.actions.ts @@ -73,6 +73,41 @@ function formatConsoleToolResult(result: { @@ -44,7 +44,7 @@ index 8fd27500c..af0f67d3d 100644 function isChromeStaleTargetError(profile: string | undefined, err: unknown): boolean { if (profile !== "chrome-relay" && profile !== "chrome") { return false; -@@ -318,6 +353,7 @@ export async function executeActAction(params: { +@@ -290,6 +325,7 @@ export async function executeActAction(params: { proxyRequest: BrowserProxyRequest | null; }): Promise> { const { request, baseUrl, profile, proxyRequest } = params; @@ -53,11 +53,11 @@ index 8fd27500c..af0f67d3d 100644 const result = proxyRequest ? await proxyRequest({ diff --git a/src/agents/tools/browser-tool.test.ts b/src/agents/tools/browser-tool.test.ts -index 9cd664527..84cd5d043 100644 +index adaaea782..d59a081b5 100644 --- a/src/agents/tools/browser-tool.test.ts +++ b/src/agents/tools/browser-tool.test.ts -@@ -861,3 +861,113 @@ describe("browser tool act stale target recovery", () => { - expect(result?.details).toMatchObject({ ok: true, targetId: "new-tab" }); +@@ -798,3 +798,113 @@ describe("browser tool act stale target recovery", () => { + expect(browserActionsMocks.browserAct).toHaveBeenCalledTimes(1); }); }); +