diff --git a/assistant/src/__tests__/browser-skill-endstate.test.ts b/assistant/src/__tests__/browser-skill-endstate.test.ts index 8d925a2ee73..0f44481201e 100644 --- a/assistant/src/__tests__/browser-skill-endstate.test.ts +++ b/assistant/src/__tests__/browser-skill-endstate.test.ts @@ -200,8 +200,8 @@ describe("browser skill migration end-state", () => { ); expect(fs.existsSync(execPath)).toBe(true); const content = fs.readFileSync(execPath, "utf-8"); - // browser_wait_for_download uses a standalone wrapper that calls - // browserManager.waitForDownload() directly — no execute* function. + // browser_wait_for_download has no matching executeBrowser* function + // exported from browser-execution.ts — it is handled via operations.ts. const TOOLS_WITH_EXECUTE_FN = BROWSER_TOOL_NAMES.filter( (name) => name !== "browser_wait_for_download", ); diff --git a/assistant/src/browser/operations.ts b/assistant/src/browser/operations.ts index bac21bb10cc..edfbf7471e3 100644 --- a/assistant/src/browser/operations.ts +++ b/assistant/src/browser/operations.ts @@ -128,7 +128,7 @@ async function executeWaitForDownload( if (mode !== "auto" && mode !== "local") { return { content: - `Error: wait_for_download does not support browser_mode "${mode}". ` + + `Error: browser_wait_for_download does not support browser_mode "${mode}". ` + `File downloads require the local Playwright backend. ` + `Use browser_mode "auto" or "local" instead.`, isError: true,