Revert default tool output truncation

This commit is contained in:
Thomas Krijnen
2026-04-04 13:12:47 +02:00
parent 5b1ec85f75
commit 30517770e0
+2 -2
View File
@@ -497,11 +497,11 @@ Be concise. Avoid dumping huge trees unless asked.
let messages = []; // running conversation state (Chat Completions style)
const MAX_TOOL_RESULT_CHARS = 2000;
const MAX_TOOL_RESULT_CHARS = 0;
const MAX_HISTORY_MESSAGES = 40;
function truncateToolResult(text) {
if (text.length <= MAX_TOOL_RESULT_CHARS) return text;
if (MAX_TOOL_RESULT_CHARS == 0 || text.length <= MAX_TOOL_RESULT_CHARS) return text;
return text.slice(0, MAX_TOOL_RESULT_CHARS) + "\n... (truncated)";
}