Files
nanobot/webui/src/components/thread/SubagentThread.tsx
T
chengyongru 816c9221a0 fix(webui): add spring feedback at the history boundary (#6322)
* fix(webui): add spring feedback at the history boundary

Refs NAN-287.

* fix(webui): refine history boundary states and retry feedback

* fix(webui): share history loading states with subagents
2026-10-20 15:32:21 +08:00

18 lines
793 B
TypeScript

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 <SubagentThreadView messages={messages} loading={loading} error={error} isStreaming={isStreaming}
activeTurnId={activeTurnId} runStartedAt={task.created_at} onRetry={retry} />;
}