Update packages/core/src/tools/web-fetch.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Bryan Morgan
2026-02-22 15:03:16 -05:00
parent 4f72d4d9a7
commit 78cd88fc7c

View File

@@ -170,7 +170,7 @@ class WebFetchToolInvocation extends BaseToolInvocation<
const response = await retryWithBackoff(
async () => {
const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS);
const res = await fetchWithTimeout(fetchUrl, URL_FETCH_TIMEOUT_MS, signal);
if (!res.ok) {
const error = new Error(
`Request failed with status code ${res.status} ${res.statusText}`,
@@ -182,6 +182,7 @@ class WebFetchToolInvocation extends BaseToolInvocation<
},
{
retryFetchErrors: this.config.getRetryFetchErrors(),
signal,
},
);