fix: drop thinking deltas from background agent loops

Skip thinking-only deltas when accumulating background, scheduled-task, and teacher captured reply text.
This commit is contained in:
adabarbulescu
2026-06-15 09:03:09 +03:00
committed by GitHub
parent 71ccd59b54
commit afc81bdd7b
4 changed files with 8 additions and 2 deletions
+2
View File
@@ -1649,6 +1649,8 @@ class TaskScheduler:
data = json.loads(event_str[6:])
# Capture text from all event types, not just delta
if "delta" in data:
if data.get("thinking"):
continue
full_text += data["delta"]
elif data.get("type") == "tool_output":
# Tool results — capture summary so we have SOMETHING even