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.

Update ChatBubble component to include 'type' and 'isError' props in destructuring

Salman-Ahamedc3dec70621a1
diff --git a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
index 6499da3e..d497c1bc 100644
--- a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
@@ -18,14 +18,14 @@ const DEFAULT_AVATAR_URL =
export const ChatBubble: FC<IChatMessage> = (props) => {
const {
me,
+ type,
files,
avatar,
+ isError,
message,
- type,
isReplying,
isRetrying,
onRetryClick,
- isError,
hideMessageBubble,
thinkingMessage,
} = props;
@@ -37,9 +37,7 @@ export const ChatBubble: FC<IChatMessage> = (props) => {
}
// Handle thinking messages
- if (type === 'thinking') {
- return <ThinkingMessage message={message} avatar={avatar} />;
- }
+ if (type === 'thinking') return <ThinkingMessage message={message} avatar={avatar} />;
return isReplying || isRetrying ? (
<ReplyLoader avatar={avatar ?? DEFAULT_AVATAR_URL} />