From 5857231267c4874bc03ca1c8d07e2479f396ac88 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Fri, 28 Aug 2026 03:17:05 -0700 Subject: [PATCH] fix(execute_code): limits line teaches spillover instead of a bare 50KB cap (#97048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(execute_code): limits line teaches spillover — big stdout is saved, not lost (follow-up to #97043) * fix(execute_code): drop the editorializing tail from the limits line (maintainer review) --- tools/code_execution_tool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/code_execution_tool.py b/tools/code_execution_tool.py index dc7ac07648..92e1ffe811 100644 --- a/tools/code_execution_tool.py +++ b/tools/code_execution_tool.py @@ -2393,8 +2393,9 @@ def build_execute_code_schema(enabled_sandbox_tools: set = None, "loses that state.\n\n" f"Available via `from hermes_tools import ...`:\n\n" f"{tool_lines}\n\n" - "Limits: 5-minute timeout, 50KB stdout cap, max 50 tool calls per " - "call.\n\n" + "Limits: 5-minute timeout, max 50 tool calls per call. Stdout over " + "50KB shows head/tail inline; the FULL text is auto-saved to a file " + "whose path rides in the result.\n\n" f"{cwd_note}\n\n" "Built-in helpers (no import): json_parse(text) — tolerant " "json.loads for terminal() output; shell_quote(s) — shlex.quote for "