Skip to content

Commit 516fbb2

Browse files
committed
🚑 this got lost during merge
1 parent f327652 commit 516fbb2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mucgpt-core-service/src/agent/agent_executor.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,8 @@ async def run_with_streaming(
172172
if chunk_content is None:
173173
continue
174174
if isinstance(chunk_content, str):
175-
# Skip only if it's empty OR only spaces/tabs WITHOUT any newline characters.
176-
if (
177-
chunk_content.strip() == ""
178-
and "\n" not in chunk_content
179-
):
175+
# Skip only when the chunk is truly empty; spaces need to stream for proper formatting.
176+
if chunk_content == "":
180177
continue
181178
else:
182179
# If content is not a string (e.g., list for multimodal), keep existing behavior and pass through.

0 commit comments

Comments
 (0)