Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Update comment in useChat hook for clarity

Salman-Ahamed80041cf97ac9
diff --git a/packages/app/src/react/features/ai-chat/hooks/use-chat.ts b/packages/app/src/react/features/ai-chat/hooks/use-chat.ts
index c1476139..c474f92e 100644
--- a/packages/app/src/react/features/ai-chat/hooks/use-chat.ts
+++ b/packages/app/src/react/features/ai-chat/hooks/use-chat.ts
@@ -308,7 +308,7 @@ export const useChat = (config: IUseChatConfig): IUseChatReturn => {
setIsProcessing(true);
clearError();
- // Remove any previous error messages and incomplete AI messages before sending new message
+ // Remove any previous error messages and loading messages before sending new message
setMessages((prev) => {
// Check if there are any error messages (indicates stopped generation)
const hasErrorMessages = prev.some((msg) => msg.type === 'error');