diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx index 8776d5d6d6..0326b90a97 100644 --- a/studio/frontend/src/components/assistant-ui/thread.tsx +++ b/studio/frontend/src/components/assistant-ui/thread.tsx @@ -996,6 +996,24 @@ const GeneratingIndicator: FC = () => { return Generating...; }; +// Placeholder when stop fires before any visible content (e.g. mid-think). +const CancelledIndicator: FC = () => { + const show = useAuiState( + ({ message }) => + message.content.length === 0 && + message.status?.type === "incomplete" && + message.status?.reason === "cancelled", + ); + if (!show) { + return null; + } + return ( + + Cancelled. + + ); +}; + const AssistantMessage: FC = () => { return ( { >
+