fix: The knowledge base results show a source issue #3658 (#3661)

This commit is contained in:
shaohuzhang1 2025-07-17 18:15:50 +08:00 committed by GitHub
parent 0435e1e494
commit 4711527222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}