From 3b8ef4c3fe6838f4938446a6c9056dad32024d26 Mon Sep 17 00:00:00 2001 From: EchterTimo Date: Tue, 19 Aug 2025 11:25:48 +0200 Subject: [PATCH] Prevent unnecessary bot typing activity on user typing activity --- .../microsoft/agents/hosting/core/app/agent_application.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/microsoft-agents-hosting-core/microsoft/agents/hosting/core/app/agent_application.py b/libraries/microsoft-agents-hosting-core/microsoft/agents/hosting/core/app/agent_application.py index 142f311c..2edcacf4 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft/agents/hosting/core/app/agent_application.py +++ b/libraries/microsoft-agents-hosting-core/microsoft/agents/hosting/core/app/agent_application.py @@ -600,7 +600,8 @@ async def on_turn(self, context: TurnContext): async def _on_turn(self, context: TurnContext): try: - await self._start_typing(context) + if context.activity.type != ActivityTypes.typing: + await self._start_typing(context) self._remove_mentions(context)