fix(execute_code): limits line teaches spillover instead of a bare 50KB cap (#97048)

* 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)
This commit is contained in:
Teknium
2026-08-28 03:17:05 -07:00
committed by GitHub
parent ae8c976032
commit 5857231267
+3 -2
View File
@@ -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 "