Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
studio/frontend: show Generation stopped placeholder when cancelled mid-thinking (#5565)
Daniel Hanebed6469a023
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 8776d5d6d61..0326b90a975 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 <span className="text-sm text-muted-foreground">Generating...</span>;};+// 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 (+ <span className="aui-cancelled-indicator text-sm italic text-muted-foreground">+ Cancelled.+ </span>+ );+};+const AssistantMessage: FC = () => {return (<MessagePrimitive.Root@@ -1004,6 +1022,7 @@ const AssistantMessage: FC = () => {><div className="aui-assistant-message-content wrap-break-word min-w-0 text-[#0d0d0d] dark:text-foreground leading-relaxed"><GeneratingIndicator />+ <CancelledIndicator /><MessagePrimitive.Partscomponents={{Text: MarkdownText,