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 9be2a64a7b
commit 24114f0e71
@@ -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 (