fix: approximated not verifying domain, change request type for /agents

route
This commit is contained in:
Rotimi Best
2026-05-21 14:05:37 +01:00
parent c1bbd02f8e
commit ec92fc5083
23 changed files with 179 additions and 176 deletions
@@ -113,9 +113,9 @@
return (part as { errorText?: string }).errorText;
}
const inlineParts = $derived(message.parts.filter((part) => (part as { type?: string }).type === 'text'));
const inlineParts = $derived((message.parts ?? []).filter((part) => (part as { type?: string }).type === 'text'));
const deferredPlanParts = $derived(
message.parts.filter((part) => isDeferredPlanPart(part as Record<string, unknown>))
(message.parts ?? []).filter((part) => isDeferredPlanPart(part as Record<string, unknown>))
);
const hasBubbleContent = $derived(inlineParts.length > 0 || deferredPlanParts.length > 0 || !!messageAttachment);
const showStreamingSpinner = $derived(message.role === 'assistant' && !hasBubbleContent && isStreaming && isLast);