import { SubagentThreadView } from "@/components/thread/SubagentThreadView"; import { useSubagentThread } from "@/components/thread/useSubagentThread"; import type { SubagentTaskSnapshot } from "@/lib/types"; interface SubagentThreadProps { token: string; sessionKey: string; task: SubagentTaskSnapshot; historyEnabled: boolean; isStreaming: boolean; } export function SubagentThread({ token, sessionKey, task, historyEnabled, isStreaming }: SubagentThreadProps) { const { messages, loading, error, activeTurnId, retry } = useSubagentThread({ token, sessionKey, task, historyEnabled }); return ; }