优化: 执行中折叠卡头补生成间隙即时摘要
工具间隙(LLM 写正文)显「生成回复中」, 折叠卡头任意时刻可见当前动作
This commit is contained in:
@@ -1026,7 +1026,10 @@ function stepText(s: TurnCallStats, round: number): string {
|
||||
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.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 }))
|
||||
else parts.push(t('ai.trace.generating'))
|
||||
if (s.pending > 0) parts.push(t('ai.trace.stepPending', { n: s.pending }))
|
||||
return parts.join(' · ') || t('ai.trace.processOnly')
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
roundN: 'Round {n}',
|
||||
processOnly: 'Process log',
|
||||
compressed: 'Context summary',
|
||||
generating: 'Composing reply',
|
||||
running: 'Running',
|
||||
taskRef: 'Related task: {name}',
|
||||
stepDone: '✓ {n} calls done',
|
||||
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
roundN: '第 {n} 轮',
|
||||
processOnly: '过程记录',
|
||||
compressed: '压缩摘要',
|
||||
generating: '生成回复中',
|
||||
running: '进行中',
|
||||
taskRef: '关联任务:{name}',
|
||||
stepDone: '✓ {n} 次调用完成',
|
||||
|
||||
Reference in New Issue
Block a user