From 299275094f50a0759651538173c3a835ddae23ee Mon Sep 17 00:00:00 2001 From: acamq <179265037+acamq@users.noreply.github.com> Date: Sun, 10 May 2026 17:33:36 -0600 Subject: [PATCH] Revert "fix(tool-execute-after): cap excessively long tool output to prevent TUI flooding (fixes #3586)" --- src/plugin/tool-execute-after.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/plugin/tool-execute-after.ts b/src/plugin/tool-execute-after.ts index 7dabc7545..1fc78f5f7 100644 --- a/src/plugin/tool-execute-after.ts +++ b/src/plugin/tool-execute-after.ts @@ -182,14 +182,5 @@ export function createToolExecuteAfterHandler(args: { } await runToolExecuteAfterHooks() - - // Cap excessively long error outputs that would flood the TUI with raw - // stack traces or framework internals. Normal outputs are handled by the - // tool-output-truncator hook for specific tools; this catch-all only fires - // for outputs that still exceed a safe display length after all hooks. - const MAX_ERROR_OUTPUT_CHARS = 3000 - if (typeof output.output === "string" && output.output.length > MAX_ERROR_OUTPUT_CHARS) { - output.output = output.output.slice(0, MAX_ERROR_OUTPUT_CHARS) + "\n\n...(output truncated for display)" - } } }