chore: 版本号 0.14.6 → 0.14.7
fix: onNewIteration 只在 THINKING 状态调用,消除每状态切换的冗余触发 fix: renderMessages 全量清空重建,去掉增量 diff 的边界 bug fix: 空消息跳过增加 think 判断,纯思考卡片不再被吞掉 fix: updateMessageToolRecord 改为空函数,工具卡片统一由 onDone 挂载
This commit is contained in:
@@ -1946,8 +1946,8 @@ export async function runAgentLoop(
|
||||
ctx.maxLoops = newMax;
|
||||
}
|
||||
|
||||
// 非首轮迭代:通知 UI
|
||||
if (ctx.loopCount > 0 && callbacks.onNewIteration) {
|
||||
// 仅在 THINKING 阶段通知 UI(一次迭代只通知一次,不是每个状态切换都通知)
|
||||
if (ctx.loopCount > 0 && ctx.state === S.THINKING && callbacks.onNewIteration) {
|
||||
callbacks.onNewIteration(ctx.prevToolCalls.length > 0 ? ctx.prevToolCalls : undefined);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user