From 91907789af08952d7634857d9f2e69ea24d366a9 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Tue, 24 Feb 2026 14:25:51 -0800 Subject: [PATCH] refactor: remove temporary debug logging in code execution tool - Eliminated the temporary debug logging in the `execute_code` function that tracked enabled and sandbox tools, streamlining the code and reducing clutter. --- tools/code_execution_tool.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/code_execution_tool.py b/tools/code_execution_tool.py index d97597aa7..c58951fd6 100644 --- a/tools/code_execution_tool.py +++ b/tools/code_execution_tool.py @@ -342,10 +342,6 @@ def execute_code( session_tools = set(enabled_tools) if enabled_tools else set() sandbox_tools = frozenset(SANDBOX_ALLOWED_TOOLS & session_tools) - # Temporary debug — remove after investigating - with open("/tmp/hermes_exec_debug.log", "a") as _dbg: - _dbg.write(f"enabled_tools={enabled_tools}\nsandbox_tools={sandbox_tools}\n---\n") - if not sandbox_tools: sandbox_tools = SANDBOX_ALLOWED_TOOLS