优化: 对话执行轨迹聚合与工具卡交互

前端聚合当前轮次工具调用数,替代每轮清零的完成计数,进度文案改轮次+累计口径
完成聚合语义由执行轨迹卡承接,工具卡复读修复与默认折叠收敛
流式与工具事件配套调整,新增轮次轨迹收集 composable
This commit is contained in:
lxy
2026-10-01 02:41:05 +08:00
parent e7cd035c62
commit 04acc4297d
15 changed files with 482 additions and 95 deletions
+20 -5
View File
@@ -52,10 +52,25 @@ export default {
unarchiveAction: 'unarchive',
pinAction: 'pin',
unpinAction: 'unpin',
// Agentic loop progress bar copy
// Note: max round / completed tool count are not surfaced by backend this round;
// template conditionally omits them. Add *WithMax keys once backend exposes them.
agenticProgress: '🔄 Round {round} · ⏳{pending} pending',
agenticProgressNoPending: '🔄 Round {round} · ✅{completed} tools done',
// Agentic loop progress bar copy (status semantics: round N · M calls total · running/pending)
// total is aggregated on the frontend from current-turn toolCalls (useTurnTrace), not a backend field
// Note: max round is not surfaced by backend; template conditionally omits it.
agenticProgress: 'Round {round} · {total} calls total · ⏳{pending} pending',
agenticProgressNoPending: 'Round {round} · {total} calls total · running',
// Shared semantics for execution trace card / live step summary (A) and aggregate group row (B)
trace: {
title: 'Execution Trace',
calls: '{n} calls',
ok: '{n} ok',
fail: '{n} failed',
rejected: '{n} rejected',
duration: 'total {time}',
expand: 'Expand trace',
collapse: 'Collapse trace',
processOnly: 'Process log',
stepDone: '✓ {n} calls done',
stepRunning: 'running {name}',
stepPending: '⏳ {n} pending approval',
},
},
}