* 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
19 lines
762 B
TypeScript
19 lines
762 B
TypeScript
import { ThreadHistoryStatus } from "@/components/thread/ThreadHistoryStatus";
|
|
import { ThreadMessages } from "@/components/thread/ThreadMessages";
|
|
import type { UIMessage } from "@/lib/types";
|
|
|
|
export function SubagentThreadView({ messages, loading, error, isStreaming, activeTurnId, runStartedAt, onRetry }: {
|
|
messages: UIMessage[];
|
|
loading: boolean;
|
|
error: string | null;
|
|
isStreaming: boolean;
|
|
activeTurnId?: string | null;
|
|
runStartedAt: number;
|
|
onRetry: () => void;
|
|
}) {
|
|
return <>
|
|
{loading || error ? <ThreadHistoryStatus className="relative" loading={loading} error={error} onRetry={onRetry} /> : null}
|
|
<ThreadMessages messages={messages} isStreaming={isStreaming} activeTurnId={activeTurnId} runStartedAt={runStartedAt} />
|
|
</>;
|
|
}
|