From 7470c6e57add7d27da27cf436e736c54030c60ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 6 May 2026 15:41:29 +0800 Subject: [PATCH] fix: Fix `intent-node` execution details not displaying `user input` --- apps/application/serializers/application_chat_record.py | 2 +- apps/chat/mcp/tools.py | 2 +- apps/chat/serializers/chat.py | 1 - ui/src/components/execution-detail-card/index.vue | 2 +- ui/src/locales/lang/en-US/workflow.ts | 6 +++--- ui/src/locales/lang/zh-CN/workflow.ts | 6 +++--- ui/src/locales/lang/zh-Hant/workflow.ts | 6 +++--- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/apps/application/serializers/application_chat_record.py b/apps/application/serializers/application_chat_record.py index b2f21f72008..572d1c5a248 100644 --- a/apps/application/serializers/application_chat_record.py +++ b/apps/application/serializers/application_chat_record.py @@ -170,7 +170,7 @@ def reset_chat_record(chat_record, show_source, show_exec): 'padding_problem_text': chat_record.details.get('problem_padding').get( 'padding_problem_text') if 'problem_padding' in chat_record.details else None, **(show_source_dict if show_source else {}), - **(show_exec_dict if show_exec else show_exec_dict) + **show_exec_dict } def page(self, current_page: int, page_size: int, with_valid=True, show_source=None, show_exec=None): diff --git a/apps/chat/mcp/tools.py b/apps/chat/mcp/tools.py index 4a3ff972388..cdda118c0c1 100644 --- a/apps/chat/mcp/tools.py +++ b/apps/chat/mcp/tools.py @@ -64,7 +64,7 @@ def _get_chat_id(self): }).open() def call_tool(self, params): - name = params["name"] + # name = params["name"] args = params.get("arguments", {}) # print(params) diff --git a/apps/chat/serializers/chat.py b/apps/chat/serializers/chat.py index 58f23136638..1ea69fc8ebd 100644 --- a/apps/chat/serializers/chat.py +++ b/apps/chat/serializers/chat.py @@ -385,7 +385,6 @@ def get_chat_record(chat_info, chat_record_id): chat_record = QuerySet(ChatRecord).filter(id=chat_record_id, chat_id=chat_info.chat_id).first() if chat_record is None: raise ChatException(500, _("Conversation record does not exist")) - return chat_record chat_record = QuerySet(ChatRecord).filter(id=chat_record_id).first() return chat_record diff --git a/ui/src/components/execution-detail-card/index.vue b/ui/src/components/execution-detail-card/index.vue index c005b4dbb69..f218014e984 100644 --- a/ui/src/components/execution-detail-card/index.vue +++ b/ui/src/components/execution-detail-card/index.vue @@ -312,7 +312,7 @@ {{ $t('aiChat.executionDetails.currentChat') }}