From 856bb8b75a94c5b0c887fa2b555df219b8f28cfd Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:33:44 +0530 Subject: [PATCH] fix: streaming --- lib/features/chat/providers/chat_providers.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/features/chat/providers/chat_providers.dart b/lib/features/chat/providers/chat_providers.dart index 845f7d0..72cd7d0 100644 --- a/lib/features/chat/providers/chat_providers.dart +++ b/lib/features/chat/providers/chat_providers.dart @@ -1279,7 +1279,11 @@ Future _sendMessageInternal( // Mirror web client's execute path: listen on provided dynamic channel final channel = payload['channel']; if (channel is String && channel.isNotEmpty) { - DebugLogger.stream('Socket request:chat:completion channel=$channel'); + // Prefer dynamic channel for streaming content; suppress chat-events text to avoid duplicates + suppressSocketContent = true; + if (kSocketVerboseLogging) { + DebugLogger.stream('Socket request:chat:completion channel=$channel'); + } void channelLineHandler(dynamic line) { try { if (line is String) {