import React from 'react'; import { ChatContainer } from '@/components/chat/ChatContainer'; import { ChatErrorBoundary } from '@/components/chat/ChatErrorBoundary'; import { useSessionUIStore } from '@/sync/session-ui-store'; type ChatViewProps = { active?: boolean; /** * Controls message-history subscription independently of `active`. * Embedded session-chat panels keep this true so history stays visible * while composer focus / background work remain gated by visibility. */ messagesEnabled?: boolean; readOnly?: boolean; initialAllowPromptingSubagentSessions?: boolean; }; export const ChatView: React.FC = ({ active = true, messagesEnabled, readOnly = false, initialAllowPromptingSubagentSessions, }) => { const currentSessionId = useSessionUIStore((state) => state.currentSessionId); return ( ); };