Do not render mcp responses as markdown (#1388)

This commit is contained in:
Sandy Tao 2025-06-24 14:10:41 -07:00 committed by GitHub
parent e613cbc448
commit a411c415a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,13 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
)
: undefined;
// Long tool call response in MarkdownDisplay doesn't repect availableTerminalHeight properly,
// we're forcing it to not render as markdown when the response is too long, it will fallback
// to render as plain text, which is contained within the terminal using MaxSizedBox
if (availableHeight) {
renderOutputAsMarkdown = false;
}
const childWidth = terminalWidth - 3; // account for padding.
return (