fix: Agent 迭代数从未更新,始终显示 0/N

This commit is contained in:
thzxx
2026-06-27 22:17:58 +08:00
parent d6bc30b540
commit fcdd1629f6
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -38,6 +38,11 @@ export function useAgentStream(): void {
const store = useAgentStore.getState();
// 每次收到迭代号时同步更新
if (data.iteration != null) {
store.setCurrentIteration(data.iteration);
}
switch (data.type) {
// 思考开始
case 'thinking_start':