fix: Agent 迭代数从未更新,始终显示 0/N
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user