feat: support artifact preview

This commit is contained in:
Henry Li
2026-01-17 15:09:44 +08:00
parent ec5bbf6b51
commit 962d8f04ec
16 changed files with 482 additions and 42 deletions

View File

@@ -22,9 +22,11 @@ import { MessageListSkeleton } from "./skeleton";
export function MessageList({
className,
threadId,
thread,
}: {
className?: string;
threadId: string;
thread: UseStream<AgentThreadState>;
}) {
if (thread.isThreadLoading) {
@@ -57,7 +59,11 @@ export function MessageList({
}
}
return (
<ArtifactFileList key={groupedMessages[0].id} files={files} />
<ArtifactFileList
key={groupedMessages[0].id}
files={files}
threadId={threadId}
/>
);
}
return (