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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance Chat History Component: Add error handling for messages
Salman-Ahamed222d1778afe5
diff --git a/packages/app/src/react/features/ai-chat/components/chat-history.tsx b/packages/app/src/react/features/ai-chat/components/chat-history.tsxindex e5ec8f30..8d648b65 100644--- a/packages/app/src/react/features/ai-chat/components/chat-history.tsx+++ b/packages/app/src/react/features/ai-chat/components/chat-history.tsx@@ -82,6 +82,9 @@ export const ChatHistory: FC<ChatHistoryProps> = ({ agent, chatId, messages }) =: undefined}isRetrying={contextIsRetrying && index === chatHistoryMessages.length - 1}+ // Handle error messages as normal responses with error styling+ isError={message.isError}+ errorType={message.errorType}/>{index === chatHistoryMessages.length - 1 && contextIsRetrying && (<button onClick={retryLastMessage}>Retry</button>