MCPcopy Create free account
hub / github.com/idosal/git-mcp / getMessageText

Function getMessageText

app/chat/components/message.tsx:152–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 =

Callers 1

PurePreviewMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected