change copy to act only on individual assitant/user blocks

This commit is contained in:
Alex Crouch
2025-12-15 23:29:03 +11:00
committed by Shantur Rathore
parent 997d4f4129
commit 450f5bf0b4

View File

@@ -146,7 +146,7 @@ interface MessageItemProps {
const getRawContent = () => { const getRawContent = () => {
return props.parts return props.parts
.filter(part => part.type === "text" || part.type === "reasoning") .filter(part => part.type === "text")
.map(part => (part as { text?: string }).text || "") .map(part => (part as { text?: string }).text || "")
.filter(text => text.trim().length > 0) .filter(text => text.trim().length > 0)
.join("\n\n") .join("\n\n")