We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f327652 commit 516fbb2Copy full SHA for 516fbb2
mucgpt-core-service/src/agent/agent_executor.py
@@ -172,11 +172,8 @@ async def run_with_streaming(
172
if chunk_content is None:
173
continue
174
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
- ):
+ # Skip only when the chunk is truly empty; spaces need to stream for proper formatting.
+ if chunk_content == "":
180
181
else:
182
# If content is not a string (e.g., list for multimodal), keep existing behavior and pass through.
0 commit comments