From 146be139a2a4719a1a5234acca4a6d42b39f349f Mon Sep 17 00:00:00 2001 From: Nikketryhard Date: Sat, 14 Feb 2026 22:18:02 -0600 Subject: [PATCH] fix: re-enable tool stripping after testing With tools present, LS enters full agentic mode doing multi-turn tool calls (file searches, terminal commands, etc.). A simple weather question caused 40+ Google API calls in 120s before timeout. Tool stripping is required to maintain single-turn behavior. --- src/mitm/modify.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mitm/modify.rs b/src/mitm/modify.rs index 98d6a1f..196cc1e 100644 --- a/src/mitm/modify.rs +++ b/src/mitm/modify.rs @@ -9,8 +9,9 @@ use serde_json::Value; use tracing::info; /// Strip ALL tool definitions. -/// Set to false to allow tools through (for tool call testing). -const STRIP_ALL_TOOLS: bool = false; +/// Must be true: with tools present, the LS enters full agentic mode +/// (multi-turn tool calls, file searches, etc.) burning quota. +const STRIP_ALL_TOOLS: bool = true; /// Modify a streamGenerateContent request body in-place. /// Returns the modified JSON bytes, or None if modification wasn't possible.