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 AgentChatPage: Rearrange destructured values and simplify ChatHeader props
Salman-Ahamed130e192ed500
diff --git a/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx b/packages/app/src/react/features/ai-chat/pages/ai-chat.tsxindex 2fddef3d..da486eb1 100644--- a/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx+++ b/packages/app/src/react/features/ai-chat/pages/ai-chat.tsx@@ -35,10 +35,10 @@ const AgentChatPage = () => {// ============================================================================// All chat logic is now encapsulated in this single hookconst {- chatContextValue,agent,- agentSettings,isLoading,+ agentSettings,+ chatContextValue,sharedMessagesHistory,handleFileDrop,} = useAgentChatContext({@@ -71,12 +71,7 @@ const AgentChatPage = () => {return (<ChatProvider value={chatContextValue}><Container>- <ChatHeader- agentName={agent?.name}- agentSettings={agentSettings?.settings}- isAgentLoading={isLoading.agent}- isSettingsLoading={isLoading.settings}- />+ <ChatHeader agent={agent} isLoading={isLoading} agentSettings={agentSettings?.settings} /><Chats{...scroll}