From 78114e904c23cfe30e7dd51f8c926e0d0e77bcc3 Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Sun, 22 Feb 2026 15:50:54 -0500 Subject: [PATCH] fix(core): remove invalid third argument to fetchWithTimeout in web-fetch --- packages/core/src/tools/web-fetch.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/core/src/tools/web-fetch.ts b/packages/core/src/tools/web-fetch.ts index 5d279512e7..24460c23c0 100644 --- a/packages/core/src/tools/web-fetch.ts +++ b/packages/core/src/tools/web-fetch.ts @@ -171,7 +171,7 @@ class WebFetchToolInvocation extends BaseToolInvocation< const response = await retryWithBackoff( async () => { - const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS, signal); + const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS); if (!res.ok) { const error = new Error( `Request failed with status code ${res.status} ${res.statusText}`, @@ -221,7 +221,11 @@ class WebFetchToolInvocation extends BaseToolInvocation< const perUrlBudget = Math.floor(MAX_CONTENT_LENGTH / urls.length); for (const url of urls) { try { - const result = await this.executeFallbackForUrl(url, signal, perUrlBudget); + const result = await this.executeFallbackForUrl( + url, + signal, + perUrlBudget, + ); allContent.push(`--- Content from ${url} ---\n${result.content}`); fetchedUrls.push(url); } catch (e) {