diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx index a17177bf7e..778d94aacc 100644 --- a/web/app/components/app/log/list.tsx +++ b/web/app/components/app/log/list.tsx @@ -88,7 +88,16 @@ const HandThumbIconWithCount: FC<{ count: number, iconType: 'up' | 'down' }> = ( ) } -const statusTdRender = (statusCount: StatusCount) => { +const statusTdRender = (status: 'normal' | 'finished' | 'paused', statusCount: StatusCount) => { + if (status === 'paused') { + return ( +
+ + Pending +
+ ) + } + if (!statusCount) return null @@ -377,7 +386,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) { notify({ type: 'error', message: t('actionMsg.modifiedUnsuccessfully', { ns: 'common' }) }) return false } - }, [allChatItems, appDetail?.id, t]) + }, [allChatItems, appDetail?.id, notify, t]) const fetchInitiated = useRef(false) @@ -524,7 +533,7 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) { finally { setIsLoading(false) } - }, [allChatItems, detail.id, hasMore, isLoading, timezone, t, appDetail]) + }, [isLoading, hasMore, appDetail?.id, detail?.id, detail?.model_config?.configs?.introduction, allChatItems, timezone, t]) useEffect(() => { const scrollableDiv = document.getElementById('scrollableDiv') @@ -1093,7 +1102,7 @@ const ConversationList: FC = ({ logs, appDetail, onRefresh }) {renderTdValue(endUser || defaultValue, !endUser)} {isChatflow && ( - {statusTdRender(log.status_count)} + {statusTdRender(log.status, log.status_count)} )} diff --git a/web/models/log.ts b/web/models/log.ts index d15d6d6688..4b3ed4f9de 100644 --- a/web/models/log.ts +++ b/web/models/log.ts @@ -93,7 +93,7 @@ export type MessageContent = { export type CompletionConversationGeneralDetail = { id: string - status: 'normal' | 'finished' + status: 'normal' | 'finished' | 'paused' from_source: 'api' | 'console' from_end_user_id: string from_end_user_session_id: string