fix: retain cancellation labels after approval interruptions

This commit is contained in:
Ed1s0nZ committed 2026-10-06 03:11:11 +08:00
1 parent 054a77cdab
commit 9090e75a67
5 files changed
+105 -2

No files matched your search

+3 -1
View File
@@ -4206,7 +4206,9 @@ function handleStreamEvent(event, progressElement, progressId,
updateProgressConversation(progressId, event.data.conversationId);
}
if (progressTaskState.has(progressId)) {
finalizeProgressTask(progressId, typeof window.t === 'function' ? window.t('tasks.statusCompleted') : '已完成');
const outcome = progressDoneOutcome(event.data);
const labelKey = outcome.icon === '✅' ? 'tasks.statusCompleted' : outcome.key;
finalizeProgressTask(progressId, typeof window.t === 'function' ? window.t(labelKey) : outcome.fallback);
}
// 检查时间线中是否有错误项