From 9970d21a8e1ba71b51e590500c4679955c3a49b6 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 1 Sep 2025 15:47:15 +0800 Subject: [PATCH] fix: Not displaying execution details and returning too much data (#3974) --- apps/application/serializers/application_chat_record.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/application/serializers/application_chat_record.py b/apps/application/serializers/application_chat_record.py index 785447f98..08f0e5e93 100644 --- a/apps/application/serializers/application_chat_record.py +++ b/apps/application/serializers/application_chat_record.py @@ -150,7 +150,9 @@ class ApplicationChatRecordQuerySerializers(serializers.Serializer): chat_record.save() show_source_dict = {'knowledge_list': knowledge_list, 'paragraph_list': paragraph_list, } - show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details]} + show_exec_dict = {'execution_details': [chat_record.details[key] for key in chat_record.details if + (True if show_exec else chat_record.details[key].get( + 'type') == 'start-node')]} return { **ChatRecordSerializerModel(chat_record).data, 'padding_problem_text': chat_record.details.get('problem_padding').get(