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

工具间隙(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 (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')
}