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.
This commit is contained in:
teknium1
2026-02-24 14:25:51 -08:00
parent 6845852e82
commit 91907789af

View File

@@ -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