From 83b937c20e1ce39997669a111d222c6f623acb5c Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 7 May 2026 18:17:48 -0500 Subject: [PATCH] =?UTF-8?q?Remove=20fallback=20adapter.send()=20=E2=80=94?= =?UTF-8?q?=20streaming=20consumer=20handles=20delivery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agentclaw/app/agent_claw_main/main.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/agentclaw/app/agent_claw_main/main.py b/agentclaw/app/agent_claw_main/main.py index bda8b1c..40c5f2e 100644 --- a/agentclaw/app/agent_claw_main/main.py +++ b/agentclaw/app/agent_claw_main/main.py @@ -297,19 +297,7 @@ async def main(payload: dict, context): finally: _typing_active = False session_manager.close() - - # Deliver final response if agent didn't call send_message - if not messaging.was_sent() and final_message: - msg = final_message - if isinstance(msg, dict): - content = msg.get('content', {}) - if isinstance(content, dict): - msg = content.get('text', str(content)) - elif isinstance(content, list): - msg = ' '.join(c.get('text', '') for c in content if isinstance(c, dict)) - else: - msg = str(content) - adapter.send(str(msg)) + # Delivery handled by agent-runner streaming consumer — no direct send here app.run()