Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(group): a stop during the speaker load leaves an empty bubble, not the loading line

purple34e3aeb4cd65
diff --git a/src/hooks/useChat.ts b/src/hooks/useChat.ts
index abd56e71..280d89bc 100644
--- a/src/hooks/useChat.ts
+++ b/src/hooks/useChat.ts
@@ -140,8 +140,10 @@ async function runGroupTurn(convId: string, model: string, allModels: string[],
`Loading ${toLoad} into the built-in engine for this turn...`,
)
await ensureBuiltinEngineAlive(model)
- if (abort.signal.aborted) return
+ // A stop during the load must not leave the loading line standing in
+ // the bubble as if it were the model's answer.
useChatStore.getState().updateMessageContent(convId, assistantMessage.id, '')
+ if (abort.signal.aborted) return
}
}