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
@@ -55,6 +55,8 @@ async def _drain_agent(sess, messages):
if "delta" in d:
delta = d.get("delta")
if isinstance(delta, str):
if d.get("thinking"):
continue
full += delta
elif d.get("type") == "agent_step":
round_num = d.get("round", round_num)