From 3b96de95ab85704f0693313904173313a26899f9 Mon Sep 17 00:00:00 2001 From: didericis Date: Mon, 1 Jun 2026 21:41:38 -0400 Subject: [PATCH] fix(agent): move default claude env vars to the right location --- bot_bottle/agent_provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot_bottle/agent_provider.py b/bot_bottle/agent_provider.py index 80f99d1..cd271dc 100644 --- a/bot_bottle/agent_provider.py +++ b/bot_bottle/agent_provider.py @@ -194,6 +194,8 @@ def agent_provision_plan( "guest, but Codex did not accept it" ))) if template == PROVIDER_CLAUDE: + env_vars["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1" + env_vars["DISABLE_ERROR_REPORTING"] = "1" egress_routes.append(EgressRoute( host="api.anthropic.com", auth_scheme="Bearer" if auth_token else "", @@ -202,8 +204,6 @@ def agent_provision_plan( )) if auth_token: env_vars["CLAUDE_CODE_OAUTH_TOKEN"] = "egress-placeholder" - env_vars["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1" - env_vars["DISABLE_ERROR_REPORTING"] = "1" hidden_env_names = frozenset({"CLAUDE_CODE_OAUTH_TOKEN"}) return AgentProvisionPlan(