diff --git a/lib/dashbot/features/chat/viewmodel/chat_viewmodel.dart b/lib/dashbot/features/chat/viewmodel/chat_viewmodel.dart index 3e08027a..310dbdb2 100644 --- a/lib/dashbot/features/chat/viewmodel/chat_viewmodel.dart +++ b/lib/dashbot/features/chat/viewmodel/chat_viewmodel.dart @@ -265,7 +265,11 @@ class ChatViewmodel extends StateNotifier { final id = _currentRequest?.id ?? 'global'; final newSessions = {...state.chatSessions}; newSessions[id] = []; - state = state.copyWith(); + state = state.copyWith( + chatSessions: newSessions, + isGenerating: false, + currentStreamingResponse: '', + ); } Future sendTaskMessage(ChatMessageType type) async {