@tduncan / Cortana Mirror · read-only / commits / d465507
Fork 0

A mobile application designed to provide a beautiful, fast, and privacy-respecting interface for on device LLM and local LLM servers and cloud providers

Mirrored from https://github.com/tduncan-lum/Cortana.git

Synced Dec 6, 02:30 UTC

fix: add unique ValueKey to streaming ChatBubble to prevent UI state inconsistencies

abdulmominsakib committed Jun 27, 2026 at 19:11 UTC d465507d60051a772658c300360aad2da2a8e636
1 file changed +5 -1
lib/features/chat/views/components/message_list/message_list.dart
+5 -1
@@ -132,7 +132,11 @@ class _MessageList extends StatelessWidget {
132 if (streamingMessage != null &&
133 isStreaming &&
134 index == allMessages.length) {
135 - return ChatBubble(message: streamingMessage!, isStreaming: true);
135 + return ChatBubble(
136 + key: ValueKey(streamingMessage!.id),
137 + message: streamingMessage!,
138 + isStreaming: true,
139 + );
140 }
141
142 final message = allMessages[index];