From fa5bea12414209d481b6ffe15f2fab786f801be6 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 13 Jan 2026 12:25:34 -0800 Subject: [PATCH] chore: remove any type --- extensions/cli/src/util/exponentialBackoff.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/cli/src/util/exponentialBackoff.ts b/extensions/cli/src/util/exponentialBackoff.ts index 1c5657e5d..8f3004ae9 100644 --- a/extensions/cli/src/util/exponentialBackoff.ts +++ b/extensions/cli/src/util/exponentialBackoff.ts @@ -80,7 +80,10 @@ function isConnectionError(errorMessage: string): boolean { /** * Checks if the error indicates a context length issue (non-retryable) */ -export function isContextLengthError(error: any): boolean { +export function isContextLengthError(error: unknown): boolean { + if (!(error instanceof Error)) { + return false; + } const errorMessage = error.message?.toLowerCase() || ""; if (errorMessage.includes("invalid_request_error")) {