Add files via upload

This commit is contained in:
公明
2026-07-03 20:23:46 +08:00
committed by GitHub
parent a8da115d28
commit f02c0d175b
3 changed files with 293 additions and 11 deletions
+8 -1
View File
@@ -2707,16 +2707,23 @@ function finishProcessDetailsRender(messageElement, processDetails, isLazyNotLoa
}
const hasPendingHitlInDetails = processDetails.some(d => d && d.eventType === 'hitl_interrupt');
const hasPendingWorkflowHitl = processDetails.some(d => d && d.eventType === 'workflow_hitl_waiting');
const hasErrorOrCancelled = processDetails.some(d =>
d.eventType === 'error' || d.eventType === 'cancelled'
);
if (hasErrorOrCancelled && !hasPendingHitlInDetails) {
if (hasErrorOrCancelled && !hasPendingHitlInDetails && !hasPendingWorkflowHitl) {
timeline.classList.remove('expanded');
const processDetailBtn = messageElement.querySelector('.process-detail-btn');
if (processDetailBtn) {
processDetailBtn.innerHTML = '<span>' + (typeof window.t === 'function' ? window.t('chat.expandDetail') : '展开详情') + '</span>';
}
}
if (hasPendingWorkflowHitl && messageElement && messageElement.id) {
const convId = typeof window.currentConversationId === 'string' ? window.currentConversationId : '';
if (convId && typeof window.restoreWorkflowHitlInlineForConversation === 'function') {
window.restoreWorkflowHitlInlineForConversation(convId);
}
}
}
/** 懒加载折叠态:后台拉摘要,提示迭代规模而不加载全量详情 */