去掉 Direct 回合成功后多余的第二次清单刷新
- apps/ai-game-creator-shell/src/view/project-development/chat/controller/useDirectProjectChatController.ts 的 runTurn 不再在成功路径刷新清单,统一由 startTurn 的 finally 刷新 - 原先一轮成功会先后调用两次 get_local_game_manifest,finally 那次已覆盖成功与报错路径
This commit is contained in:
+1
-3
@@ -504,9 +504,7 @@ export function useDirectProjectChatController({
|
||||
...(input.creationType ? { creationType: input.creationType } : {}),
|
||||
}),
|
||||
);
|
||||
if (projectPathRef.current === nextProjectPath) {
|
||||
await refreshDirectManifest(nextProjectPath);
|
||||
}
|
||||
// 清单刷新统一交给 startTurn 的 finally:成功与报错路径都覆盖,且只读一次。
|
||||
} catch (error) {
|
||||
if (
|
||||
isDirectCodexTurnAlreadyRunningError(error) ||
|
||||
|
||||
Reference in New Issue
Block a user