()
| 150 | }) => { |
| 151 | // Create a string with all text parts for copy functionality |
| 152 | const getMessageText = () => { |
| 153 | if (!message.parts) return ""; |
| 154 | return message.parts |
| 155 | .filter((part) => part.type === "text") |
| 156 | .map((part) => (part.type === "text" ? part.text : "")) |
| 157 | .join("\n\n"); |
| 158 | }; |
| 159 | |
| 160 | // Only show copy button if the message is from the assistant and not currently streaming |
| 161 | const shouldShowCopyButton = |
no outgoing calls
no test coverage detected