From 7e5b39ea7242f46596a4b15242531ec93f33eb2a Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Wed, 15 Apr 2026 18:56:35 +0300 Subject: [PATCH] chore(MAT): log stream summary so deploys can be verified at a glance Single info line per _stream_chat_completion call reporting model, character count, tool-call count, and whether a Matrix message was progressively streamed. Lets us confirm the streaming path is active without tracing sentry breadcrumbs. Co-Authored-By: Claude Opus 4.6 --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 641df70..b96d3fd 100644 --- a/bot.py +++ b/bot.py @@ -3815,6 +3815,10 @@ class Bot: tc_list = None if tool_calls_acc: tc_list = [tool_calls_acc[i] for i in sorted(tool_calls_acc.keys())] + logger.info( + "[stream] model=%s chars=%d tool_calls=%d streamed_to_matrix=%s", + model, len(content), len(tc_list or []), event_id is not None, + ) return content, tc_list, usage, event_id async def _get_call_encryption_key(self, room_id: str, sender: str, caller_device_id: str = "") -> bytes | None: