Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: text generation app log not show (#21436)
Joelc8ebad055cc3
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex 208fddecd11..dd72c6c810e 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -41,6 +41,7 @@ import { buildChatItemTree, getThreadMessages } from '@/app/components/base/chatimport { getProcessedFilesFromResponse } from '@/app/components/base/file-uploader/utils'import cn from '@/utils/classnames'import { noop } from 'lodash-es'+import PromptLogModal from '../../base/prompt-log-modal'dayjs.extend(utc)dayjs.extend(timezone)@@ -190,11 +191,13 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {const { userProfile: { timezone } } = useAppContext()const { formatTime } = useTimestamp()const { onClose, appDetail } = useContext(DrawerContext)- const { currentLogItem, setCurrentLogItem, showMessageLogModal, setShowMessageLogModal, currentLogModalActiveTab } = useAppStore(useShallow(state => ({+ const { currentLogItem, setCurrentLogItem, showMessageLogModal, setShowMessageLogModal, showPromptLogModal, setShowPromptLogModal, currentLogModalActiveTab } = useAppStore(useShallow(state => ({currentLogItem: state.currentLogItem,setCurrentLogItem: state.setCurrentLogItem,showMessageLogModal: state.showMessageLogModal,setShowMessageLogModal: state.setShowMessageLogModal,+ showPromptLogModal: state.showPromptLogModal,+ setShowPromptLogModal: state.setShowPromptLogModal,currentLogModalActiveTab: state.currentLogModalActiveTab,})))const { t } = useTranslation()@@ -516,6 +519,16 @@ function DetailPanel({ detail, onFeedback }: IDetailPanel) {defaultTab={currentLogModalActiveTab}/>)}+ {!isChatMode && showPromptLogModal && (+ <PromptLogModal+ width={width}+ currentLogItem={currentLogItem}+ onCancel={() => {+ setCurrentLogItem()+ setShowPromptLogModal(false)+ }}+ />+ )}</div>)}diff --git a/web/app/components/app/text-generate/item/index.tsx b/web/app/components/app/text-generate/item/index.tsxindex aa3ffa33c47..92d86351e04 100644--- a/web/app/components/app/text-generate/item/index.tsx+++ b/web/app/components/app/text-generate/item/index.tsx@@ -171,7 +171,7 @@ const GenerationItem: FC<IGenerationItemProps> = ({appId: params.appId as string,messageId: messageId!,})- const logItem = {+ const logItem = Array.isArray(data.message) ? {...data,log: [...data.message,@@ -185,6 +185,11 @@ const GenerationItem: FC<IGenerationItemProps> = ({]: []),],+ } : {+ ...data,+ log: [typeof data.message === 'string' ? {+ text: data.message,+ } : data.message],}setCurrentLogItem(logItem)setShowPromptLogModal(true)