Fix agent streaming tool failure (#602)

* Fix agent streaming linkage

* Update tests
This commit is contained in:
cybermaggedon 2026-01-06 23:00:50 +00:00 committed by GitHub
parent 53cf5fd7f9
commit 16a5cf966a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View file

@ -241,8 +241,8 @@ class AgentManager:
logger.info("DEBUG: StreamingReActParser created")
# Create async chunk callback that feeds parser and sends collected chunks
async def on_chunk(text):
logger.info(f"DEBUG: on_chunk called with {len(text)} chars")
async def on_chunk(text, end_of_stream):
logger.info(f"DEBUG: on_chunk called with {len(text)} chars, end_of_stream={end_of_stream}")
# Track what we had before
prev_thought_count = len(thought_chunks)