From c5ba4e2e931bed81dea7fd2973ac8c734ca17fbe Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Tue, 7 Apr 2026 18:37:15 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20add=20retry=20with=20delay=20f?= =?UTF-8?q?or=20sandbox=20proxy=20config=20to=20avoid=20500=20when=20?= =?UTF-8?q?=E2=80=A6"=20(#1169)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e25b158218aa37e6a782d11fb37476c02f254221. --- agent/integrations/langsmith.py | 38 ++++++--------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/agent/integrations/langsmith.py b/agent/integrations/langsmith.py index d031c7e6..9324be2a 100644 --- a/agent/integrations/langsmith.py +++ b/agent/integrations/langsmith.py @@ -69,39 +69,13 @@ def _configure_github_proxy(sandbox_name: str, github_token: str) -> None: ] } } - max_retries = 3 - retry_delay = 5 with httpx.Client() as client: - for attempt in range(max_retries): - if attempt > 0: - time.sleep(retry_delay) - try: - response = client.patch( - url, - json=payload, - headers={"X-API-Key": api_key}, - ) - except httpx.HTTPError as e: - logger.warning( - "Proxy config attempt %d/%d connection error: %s", - attempt + 1, - max_retries, - e, - ) - if attempt == max_retries - 1: - raise - continue - if response.is_success: - break - logger.warning( - "Proxy config attempt %d/%d failed (%s): %s", - attempt + 1, - max_retries, - response.status_code, - response.text, - ) - if attempt == max_retries - 1: - response.raise_for_status() + response = client.patch( + url, + json=payload, + headers={"X-API-Key": api_key}, + ) + response.raise_for_status() logger.info("Configured GitHub proxy for sandbox %s", sandbox_name)