feat(streaming): Simplify streaming logic and remove persistent tracking

This commit is contained in:
cogwheel0
2025-11-27 14:36:13 +05:30
parent e6f8a76f13
commit 61a3fcc83a
11 changed files with 181 additions and 1066 deletions

View File

@@ -1254,7 +1254,7 @@ class _ChatPageState extends ConsumerState<ChatPage> {
try {
// If assistant message has generated images and it's the last message,
// use image-only regenerate flow instead of text SSE regeneration
// use image-only regenerate flow instead of text streaming regeneration
if (message.role == 'assistant' &&
(message.files?.any((f) => f['type'] == 'image') == true) &&
messageIndex == messages.length - 1) {