From 7b945120a05724caf722db5056599d941ed64ffd Mon Sep 17 00:00:00 2001 From: impossibility-reach <75549752+impossibility-reach@users.noreply.github.com> Date: Tue, 21 Jul 2026 10:46:43 -0600 Subject: [PATCH] fix stripping newlines? This should make thinking and output formatted as outputted by models. --- minion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minion.py b/minion.py index 07e1079..2243ef4 100644 --- a/minion.py +++ b/minion.py @@ -3304,7 +3304,7 @@ def clear_tool_status(): leaked_token_run += 1 else: leaked_token_run = 0 - if rc.strip(): + if rc(): print(f"{DIM}{rc}{RESET}", end="", flush=True) reasoning_parts.append(rc) if not content and not tcs: @@ -3382,7 +3382,7 @@ def clear_tool_status(): last_chunk = chunk else: repeat_chunk_run = 0 - if chunk.strip(): + if chunk(): print(chunk, end="", flush=True) content.append(chunk) streamed_chars += len(chunk)