Add files via upload

This commit is contained in:
公明
2026-08-15 10:13:12 +08:00
committed by GitHub
parent aa11b32ce5
commit 9c0621819f
8 changed files with 317 additions and 11 deletions
+15
View File
@@ -3890,6 +3890,9 @@ function renderProcessDetails(messageId, processDetails, options) {
contentDiv.appendChild(timeline);
detailsContainer.appendChild(contentDiv);
}
if (typeof window.ensureProcessDetailsReturnLatestControl === 'function') {
window.ensureProcessDetailsReturnLatestControl(timeline);
}
// processDetails === null 表示“尚未加载(懒加载)”;messages.reasoningContent 可先展示
const isLazyNotLoaded = isLazyRequest;
@@ -3901,6 +3904,9 @@ function renderProcessDetails(messageId, processDetails, options) {
timeline.innerHTML = '<div class="progress-timeline-empty">' + lazyHint + '</div>';
bindProcessDetailsLazyHint(timeline, messageId);
timeline.classList.remove('expanded');
if (typeof window.updateProcessDetailsReturnLatestControl === 'function') {
window.updateProcessDetailsReturnLatestControl(timeline);
}
prefetchProcessDetailsSummaryHint(messageId, messageElement);
return;
}
@@ -3934,6 +3940,9 @@ function renderProcessDetails(messageId, processDetails, options) {
if (!isProcessDetailsUserExpanded(messageId)) {
timeline.classList.remove('expanded');
}
if (typeof window.updateProcessDetailsReturnLatestControl === 'function') {
window.updateProcessDetailsReturnLatestControl(timeline);
}
}
return;
}
@@ -4299,6 +4308,12 @@ function finishProcessDetailsRender(messageElement, processDetails, isLazyNotLoa
window.restoreWorkflowHitlInlineForConversation(convId);
}
}
if (typeof window.ensureProcessDetailsReturnLatestControl === 'function') {
window.ensureProcessDetailsReturnLatestControl(timeline);
}
if (typeof window.updateProcessDetailsReturnLatestControl === 'function') {
window.updateProcessDetailsReturnLatestControl(timeline);
}
}
/** 懒加载折叠态:后台拉摘要,提示迭代规模而不加载全量详情 */