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
Refactor chat-history component to import IChatMessage from shared types
Salman-Ahamed9518a1be0ae1
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 3bf4f102..57e46eef 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@@ -2,11 +2,12 @@ import { debounce } from 'lodash-es';import { FC, useCallback, useEffect, useRef, useState } from 'react';import { useInView } from 'react-intersection-observer';-import { ChatBubble, IChatMessage } from '@react/features/ai-chat/components';+import { ChatBubble } from '@react/features/ai-chat/components';import { CHAT_ERROR_MESSAGE } from '@react/features/ai-chat/constants';import { useChatContext } from '@react/features/ai-chat/contexts';import { useChatMessagesSuspendedQuery } from '@react/features/ai-chat/hooks';import { AgentDetails } from '@react/shared/types/agent-data.types';+import { IChatMessage } from '@react/shared/types/chat.types';interface ChatHistoryProps {chatId: string;