优化: 执行中折叠卡头补生成间隙即时摘要

工具间隙(LLM 写正文)显「生成回复中」, 折叠卡头任意时刻可见当前动作
This commit is contained in:
lxy
2026-10-11 08:55:37 +08:00
parent c2809bd927
commit 423c1df398
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -1026,7 +1026,10 @@ function stepText(s: TurnCallStats, round: number): string {
if (done > 0) parts.push(t('ai.trace.stepDone', { n: done })) if (done > 0) parts.push(t('ai.trace.stepDone', { n: done }))
if (s.fail > 0) parts.push(t('ai.trace.fail', { n: s.fail })) if (s.fail > 0) parts.push(t('ai.trace.fail', { n: s.fail }))
if (s.rejected > 0) parts.push(t('ai.trace.rejected', { n: s.rejected })) if (s.rejected > 0) parts.push(t('ai.trace.rejected', { n: s.rejected }))
// 即时摘要(U2 同口径):工具执行中显「正在 {工具}」;工具间隙(LLM 写正文/思考)显
// 「生成回复中」——折叠卡头任何时刻都有「现在在干什么」,消除无工具期的静默观感
if (s.running > 0 && s.runningName) parts.push(t('ai.trace.stepRunning', { name: s.runningName })) if (s.running > 0 && s.runningName) parts.push(t('ai.trace.stepRunning', { name: s.runningName }))
else parts.push(t('ai.trace.generating'))
if (s.pending > 0) parts.push(t('ai.trace.stepPending', { n: s.pending })) if (s.pending > 0) parts.push(t('ai.trace.stepPending', { n: s.pending }))
return parts.join(' · ') || t('ai.trace.processOnly') return parts.join(' · ') || t('ai.trace.processOnly')
} }
+1
View File
@@ -87,6 +87,7 @@ export default {
roundN: 'Round {n}', roundN: 'Round {n}',
processOnly: 'Process log', processOnly: 'Process log',
compressed: 'Context summary', compressed: 'Context summary',
generating: 'Composing reply',
running: 'Running', running: 'Running',
taskRef: 'Related task: {name}', taskRef: 'Related task: {name}',
stepDone: '✓ {n} calls done', stepDone: '✓ {n} calls done',
+1
View File
@@ -87,6 +87,7 @@ export default {
roundN: '第 {n} 轮', roundN: '第 {n} 轮',
processOnly: '过程记录', processOnly: '过程记录',
compressed: '压缩摘要', compressed: '压缩摘要',
generating: '生成回复中',
running: '进行中', running: '进行中',
taskRef: '关联任务:{name}', taskRef: '关联任务:{name}',
stepDone: '✓ {n} 次调用完成', stepDone: '✓ {n} 次调用完成',