From 995597d789f65579ca971d8a6747443072f07736 Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Mon, 17 Nov 2025 11:35:03 +0100 Subject: [PATCH] fix: Filter empty thinking blocks for google ai --- providers/GoogleAIProvider.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/providers/GoogleAIProvider.cpp b/providers/GoogleAIProvider.cpp index 9ddae6e..2844a87 100644 --- a/providers/GoogleAIProvider.cpp +++ b/providers/GoogleAIProvider.cpp @@ -525,6 +525,11 @@ void GoogleAIProvider::emitPendingThinkingBlocks(const QString &requestId) for (int i = alreadyEmitted; i < totalBlocks; ++i) { auto thinkingContent = thinkingBlocks[i]; + + if (thinkingContent->thinking().trimmed().isEmpty()) { + continue; + } + emit thinkingBlockReceived( requestId, thinkingContent->thinking(),