From f4ba1ab9104a50a3afda4b9a08c8e779aafe7322 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Wed, 7 Jan 2026 18:16:49 +0800 Subject: [PATCH] fix(executor): remove unused `tokenRefreshTimeout` constant and pass zero timeout to HTTP client --- internal/runtime/executor/antigravity_executor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/runtime/executor/antigravity_executor.go b/internal/runtime/executor/antigravity_executor.go index 0baba498..e113f0a4 100644 --- a/internal/runtime/executor/antigravity_executor.go +++ b/internal/runtime/executor/antigravity_executor.go @@ -45,7 +45,6 @@ const ( defaultAntigravityAgent = "antigravity/1.104.0 darwin/arm64" antigravityAuthType = "antigravity" refreshSkew = 3000 * time.Second - tokenRefreshTimeout = 30 * time.Second ) var ( @@ -951,7 +950,7 @@ func (e *AntigravityExecutor) refreshToken(ctx context.Context, auth *cliproxyau httpReq.Header.Set("User-Agent", defaultAntigravityAgent) httpReq.Header.Set("Content-Type", "application/x-www-form-urlencoded") - httpClient := newProxyAwareHTTPClient(ctx, e.cfg, auth, tokenRefreshTimeout) + httpClient := newProxyAwareHTTPClient(ctx, e.cfg, auth, 0) httpResp, errDo := httpClient.Do(httpReq) if errDo != nil { return auth, errDo