mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-22 15:18:33 +02:00
fix: retain cancellation labels after approval interruptions
This commit is contained in:
1 parent
054a77cdab
commit
9090e75a67
5 files changed
+105
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
// 检查时间线中是否有错误项
|
||||
|
||||
Reference in new issue
Block a user