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: position of log modal (#5538)
KVOJJJin41ceb6a4eb57
diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsxindex 04b56718a5b..e79cdf47939 100644--- a/web/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx+++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx@@ -128,6 +128,7 @@ const ChatItem: FC<ChatItemProps> = ({showPromptLogquestionIcon={<Avatar name={userProfile.name} size={40} />}allToolIcons={allToolIcons}+ hideLogModal/>)}diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsxindex dd89cf53681..ff476246fe5 100644--- a/web/app/components/app/configuration/debug/index.tsx+++ b/web/app/components/app/configuration/debug/index.tsx@@ -39,6 +39,7 @@ import { ModelFeatureEnum, ModelTypeEnum } from '@/app/components/header/accountimport type { ModelParameterModalProps } from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal'import { useEventEmitterContextContext } from '@/context/event-emitter'import { useProviderContext } from '@/context/provider-context'+import AgentLogModal from '@/app/components/base/agent-log-modal'import PromptLogModal from '@/app/components/base/prompt-log-modal'import { useStore as useAppStore } from '@/app/components/app/store'@@ -370,11 +371,13 @@ const Debug: FC<IDebug> = ({handleVisionConfigInMultipleModel()}, [multipleModelConfigs, mode])- const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal } = useAppStore(useShallow(state => ({+ const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({currentLogItem: state.currentLogItem,setCurrentLogItem: state.setCurrentLogItem,showPromptLogModal: state.showPromptLogModal,setShowPromptLogModal: state.setShowPromptLogModal,+ showAgentLogModal: state.showAgentLogModal,+ setShowAgentLogModal: state.setShowAgentLogModal,})))const [width, setWidth] = useState(0)const ref = useRef<HTMLDivElement>(null)@@ -434,13 +437,33 @@ const Debug: FC<IDebug> = ({</div>{debugWithMultipleModel && (- <div className='grow mt-3 overflow-hidden'>+ <div className='grow mt-3 overflow-hidden' ref={ref}><DebugWithMultipleModelmultipleModelConfigs={multipleModelConfigs}onMultipleModelConfigsChange={onMultipleModelConfigsChange}onDebugWithMultipleModelChange={handleChangeToSingleModel}checkCanSend={checkCanSend}/>+ {showPromptLogModal && (+ <PromptLogModal+ width={width}+ currentLogItem={currentLogItem}+ onCancel={() => {+ setCurrentLogItem()+ setShowPromptLogModal(false)+ }}+ />+ )}+ {showAgentLogModal && (+ <AgentLogModal+ width={width}+ currentLogItem={currentLogItem}+ onCancel={() => {+ setCurrentLogItem()+ setShowAgentLogModal(false)+ }}+ />+ )}</div>)}@@ -474,6 +497,7 @@ const Debug: FC<IDebug> = ({supportAnnotationappId={appId}varList={varList}+ siteInfo={null}/>)}</div>diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsxindex 208d752253d..c87e0a48f14 100644--- a/web/app/components/base/chat/chat/index.tsx+++ b/web/app/components/base/chat/chat/index.tsx@@ -57,6 +57,7 @@ export type ChatProps = {onFeedback?: (messageId: string, feedback: Feedback) => voidchatAnswerContainerInner?: stringhideProcessDetail?: boolean+ hideLogModal?: boolean}const Chat: FC<ChatProps> = ({appData,@@ -83,6 +84,7 @@ const Chat: FC<ChatProps> = ({onFeedback,chatAnswerContainerInner,hideProcessDetail,+ hideLogModal,}) => {const { t } = useTranslation()const { currentLogItem, setCurrentLogItem, showPromptLogModal, setShowPromptLogModal, showAgentLogModal, setShowAgentLogModal } = useAppStore(useShallow(state => ({@@ -265,7 +267,7 @@ const Chat: FC<ChatProps> = ({}</div></div>- {showPromptLogModal && (+ {showPromptLogModal && !hideLogModal && (<PromptLogModalwidth={width}currentLogItem={currentLogItem}@@ -275,7 +277,7 @@ const Chat: FC<ChatProps> = ({}}/>)}- {showAgentLogModal && (+ {showAgentLogModal && !hideLogModal && (<AgentLogModalwidth={width}currentLogItem={currentLogItem}diff --git a/web/app/components/base/prompt-log-modal/index.tsx b/web/app/components/base/prompt-log-modal/index.tsxindex 991410af22f..3cf47d8d1a6 100644--- a/web/app/components/base/prompt-log-modal/index.tsx+++ b/web/app/components/base/prompt-log-modal/index.tsx@@ -33,7 +33,7 @@ const PromptLogModal: FC<PromptLogModalProps> = ({return (<div- className='fixed top-16 left-2 bottom-2 flex flex-col bg-white border-[0.5px] border-gray-200 rounded-xl shadow-xl z-10'+ className='relative flex flex-col bg-white border-[0.5px] border-gray-200 rounded-xl shadow-xl z-10'style={{width: 480,position: 'fixed',