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
@@ -594,6 +594,8 @@ async def run_teacher_inline(
"exit_code": payload.get("exit_code"),
})
if "delta" in payload and isinstance(payload["delta"], str):
if payload.get("thinking"):
continue
captured_text_parts.append(payload["delta"])
yield 'data: ' + json.dumps(payload) + '\n\n'
continue