fix of blocking of the text output in batch mode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 11:49:52 +02:00
parent fa7f8cef7c
commit 88cc410eed

View File

@@ -80,8 +80,8 @@ class Batch:
while True:
try:
m = msg_queue.get(timeout=0.2)
if m.get("id", None) is None:
# No id -> finished
if "id" in m and m["id"] is None:
# id key present and None -> finished
break
except Empty:
if not tst_proc.is_alive():