From e36aefee44a97926b3dd55a932531e693e7cbeca Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 3 Feb 2026 11:42:21 +0800 Subject: [PATCH] fix: [Trigger] The timed trigger task is executed as an intelligent agent, and the conversation fails after triggering --- apps/trigger/handler/impl/task/application_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/trigger/handler/impl/task/application_task.py b/apps/trigger/handler/impl/task/application_task.py index 55bb7f71bec..0bc559f5763 100644 --- a/apps/trigger/handler/impl/task/application_task.py +++ b/apps/trigger/handler/impl/task/application_task.py @@ -223,7 +223,7 @@ def execute(self, trigger_task, **kwargs): "chat_user_id": chat_user_id, 'chat_user_type': ChatUserType.ANONYMOUS_USER.value, 'application_id': application_id, - 'ip_address': kwargs.get('body')['ip_address'], + 'ip_address': ip_address, 'source': { 'type': ChatSourceChoices.TRIGGER.value },