Add line wrapping to MCP arguments (#2831)

This commit is contained in:
Matt Rubens 2025-04-22 00:15:46 -04:00 committed by GitHub
parent 3e2d20f37c
commit f1c79759a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -1174,6 +1174,7 @@ export const ChatRowContent = ({
language="json"
isExpanded={true}
onToggleExpand={onToggleExpand}
forceWrap={true}
/>
</div>
)}

View file

@ -14,6 +14,7 @@ interface CodeAccordianProps {
onToggleExpand: () => void
isLoading?: boolean
progressStatus?: ToolProgressStatus
forceWrap?: boolean
}
/*
@ -38,6 +39,7 @@ const CodeAccordian = ({
onToggleExpand,
isLoading,
progressStatus,
forceWrap,
}: CodeAccordianProps) => {
const inferredLanguage = useMemo(
() => code && (language ?? (path ? getLanguageFromPath(path) : undefined)),
@ -126,6 +128,7 @@ const CodeAccordian = ({
diff ??
""
).trim()}\n${"```"}`}
forceWrap={forceWrap}
/>
</div>
)}