feat(webui): show when the agent picks up queued messages (#6719)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-19 16:03:16 +08:00
1 parent 3025a01cf0
commit b453de9cf6
26 files changed
+642 -29

No files matched your search

+9 -1
View File
@@ -59,8 +59,16 @@ const samples: { label: string; message: UIMessage }[] = [
];
export function AttachmentLayoutFixture() {
const processingSamples: typeof samples = (["pending", "consumed"] as const).map((status) => ({
label: `Attachments: ${status}`,
message: {
id: `attachments-${status}`, role: "user", content: "", createdAt: 8, processingStatus: status,
media: [archive, image("Study.svg", "#83a9d8"), { kind: "video", name: "sample.webm", url: sampleVideo }],
},
}));
const messages = new URLSearchParams(window.location.search).has("processing") ? processingSamples : samples;
return <main className="space-y-8 px-4 py-6">
{samples.map(({ label, message }) => <section key={message.id} aria-label={label}>
{messages.map(({ label, message }) => <section key={message.id} aria-label={label}>
<h2 className="mb-3 text-xs font-medium text-muted-foreground">{label}</h2>
<MessageBubble message={message} />
</section>)}