diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 96b52bb95..f8bef5e7a 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -551,7 +551,13 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para if (props.chatId === 'new') { emit('refresh', chartOpenId.value) } - return id && getSourceDetail(chat) + if (props.type === 'debug-ai-chat') { + getSourceDetail(chat) + } else { + if (props.applicationDetails && props.applicationDetails.show_exec) { + getSourceDetail(chat) + } + } }) .finally(() => { ChatManagement.close(chat.id)