Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Refactor MessageTurnGroup Component to Remove Individual Copy Button

Salman-Ahameddd8bc2b1edc7
diff --git a/packages/app/src/react/features/ai-chat/components/message-turn-group.tsx b/packages/app/src/react/features/ai-chat/components/message-turn-group.tsx
index c049e7dc..b438d747 100644
--- a/packages/app/src/react/features/ai-chat/components/message-turn-group.tsx
+++ b/packages/app/src/react/features/ai-chat/components/message-turn-group.tsx
@@ -101,7 +101,6 @@ export const MessageTurnGroup: FC<IMessageTurnGroupProps> = (props) => {
avatar={avatar}
onRetryClick={canRetry ? onRetryClick : undefined}
scrollToBottom={scrollToBottom}
- showCopyButton={false} // Disable individual copy buttons
/>
);
})}
@@ -109,7 +108,7 @@ export const MessageTurnGroup: FC<IMessageTurnGroupProps> = (props) => {
{/* Single copy button for the entire group */}
{hasSystemMessages && isComplete && (
- <div className="ps-2.5 -mt-2.5 mb-2.5">
+ <div className="ps-2.5 pb-2.5">
<Tooltip content={copied ? 'Copied!' : 'Copy all'} placement="bottom">
<button
onClick={handleCopyGroup}