删掉重复且永不成立的项目切换守卫

- `runTurn` 的 catch 里同一判据写了两遍,两处之间只有同步代码、没有 await,`projectPathRef.current` 不可能变
- 保留 await 之后那一遍,删掉其后永远不会成立的第二遍
- 不改行为:守卫效果由前一处完整覆盖
This commit is contained in:
2026-09-30 11:45:44 +08:00
parent 25cec7955a
commit a83ed01313
@@ -609,7 +609,6 @@ export function useDirectProjectChatController({
'陶泥儿智能创作',
true,
);
if (projectPathRef.current !== nextProjectPath) return true;
// 认不出的失败按"已交出"处理:它说不出用户改哪一处能变好(宿主 / 环境事实),留着草稿只会让
// 用户以为没发出去、再按一次。
draftSafe = true;