From c8a86cd3ff7ef9d8e8516a57e4b6c3b4de6f4469 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Sat, 13 Jun 2026 17:17:28 -0700 Subject: [PATCH] [eric] free-trial: set ENABLE_TOOL_SEARCH=auto on the proxy branch (tool-defer+cache_control 400) --- backend/apps/agents/agent_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/apps/agents/agent_manager.py b/backend/apps/agents/agent_manager.py index f1bf5c98..18577715 100644 --- a/backend/apps/agents/agent_manager.py +++ b/backend/apps/agents/agent_manager.py @@ -1649,6 +1649,10 @@ class AgentManager: "CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-4-6", "ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5-20251001", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001", + # auto, never the bare default: tengu_defer_all_bn4 marks every tool + # defer_loading=true, which collides with our cache_control and 400s the + # first tool-laden request (the other anthropic branches all set this). + "ENABLE_TOOL_SEARCH": "auto", } # Free lane meters one run per agent session: tag every call to the cloud with the # session id so 1 task = 1 run (without it the cloud falls back to token-coarse runs).