diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index f8bef5e7a..e7d02343e 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -554,7 +554,10 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para if (props.type === 'debug-ai-chat') { getSourceDetail(chat) } else { - if (props.applicationDetails && props.applicationDetails.show_exec) { + if ( + props.applicationDetails && + (props.applicationDetails.show_exec || props.applicationDetails.show_source) + ) { getSourceDetail(chat) } }