From 75436885e8571f8d48212bc60ff8f15f532a2483 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Fri, 30 Jan 2026 11:40:58 +0800 Subject: [PATCH] fix: missing error logs for knowledge base retrieval failures --- .../ExecutionDetailContent.vue | 21 +++++++++++++++++-- ui/src/locales/lang/en-US/ai-chat.ts | 1 + ui/src/locales/lang/zh-CN/ai-chat.ts | 1 + ui/src/locales/lang/zh-Hant/ai-chat.ts | 1 + 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue index 32a8e2d8064..122c8c7f867 100644 --- a/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue +++ b/ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue @@ -66,6 +66,16 @@ +
+
+ {{ $t('chat.executionDetails.errLog') }} +
+
+
+ {{ errStepMsg }} +
+
+
@@ -80,6 +90,14 @@ const props = defineProps<{ appType?: string }>() +const errStepMsg = computed(() => { + const err_step = props.detail?.find((item) => item.status === 500) + if (err_step) { + return `${err_step.step_type}: ${err_step.err_message}` + } + return undefined +}) + const messageList = computed(() => { const chat_step = props.detail?.find((item) => item.step_type == 'chat_step') if (chat_step) { @@ -144,5 +162,4 @@ const AiResponse = computed(() => { return messages.slice(messages.length - 1, messages.length) }) - + diff --git a/ui/src/locales/lang/en-US/ai-chat.ts b/ui/src/locales/lang/en-US/ai-chat.ts index 6d8afc98f73..5e83a78769b 100644 --- a/ui/src/locales/lang/en-US/ai-chat.ts +++ b/ui/src/locales/lang/en-US/ai-chat.ts @@ -127,6 +127,7 @@ export default { paragraphRules: 'Segmentation Rules', writeContent: 'Content Written', cancel: 'Cancel Execution', + errLog: 'Error Log', cancelExecutionTip: 'Are you sure you want to cancel the selected task? ', }, KnowledgeSource: { diff --git a/ui/src/locales/lang/zh-CN/ai-chat.ts b/ui/src/locales/lang/zh-CN/ai-chat.ts index c9f0d80799b..8b838d2d0bc 100644 --- a/ui/src/locales/lang/zh-CN/ai-chat.ts +++ b/ui/src/locales/lang/zh-CN/ai-chat.ts @@ -124,6 +124,7 @@ export default { paragraphRules: '分段规则', writeContent: '写入内容', cancel: '取消执行', + errLog: '错误日志', cancelExecutionTip: '确定取消所选的任务?', }, KnowledgeSource: { diff --git a/ui/src/locales/lang/zh-Hant/ai-chat.ts b/ui/src/locales/lang/zh-Hant/ai-chat.ts index 5b218c0dfb8..40efceaa1fc 100644 --- a/ui/src/locales/lang/zh-Hant/ai-chat.ts +++ b/ui/src/locales/lang/zh-Hant/ai-chat.ts @@ -125,6 +125,7 @@ export default { paragraphRules: '分段規則', writeContent: '寫入內容', cancel: '取消執行', + errLog: '錯誤日誌', cancelExecutionTip: '確定取消所選的任務?', }, KnowledgeSource: {