mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Do not render mcp responses as markdown (#1388)
This commit is contained in:
@@ -44,6 +44,13 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
|
|||||||
)
|
)
|
||||||
: undefined;
|
: 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.
|
const childWidth = terminalWidth - 3; // account for padding.
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user