fix(cli): clip oversized shell tool output in collapsed tool results (#883)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-09 20:59:27 -08:00
committed by GitHub
parent baa28ede88
commit 8931da0b0e
2 changed files with 26 additions and 2 deletions

View File

@@ -855,7 +855,7 @@ export const ToolCallMessage = memo(
line.phase === "finished" &&
line.resultText &&
line.resultOk !== false && (
<CollapsedOutputDisplay output={line.resultText} />
<CollapsedOutputDisplay output={line.resultText} maxChars={300} />
)}
{/* Tool result for non-shell tools or shell tool errors */}