Do not render mcp responses as markdown (#1388)
This commit is contained in:
parent
e613cbc448
commit
a411c415a8
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue