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

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 (