From 4f6f7a76bb9008de17f727bbc5886cef80afb1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 15 Sep 2026 19:59:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=B7=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=88=87=E7=89=87=E4=B8=B2=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 历史请求返回后校验当前项目路径,丢弃过期结果。 --- apps/ai-game-creator-shell/src/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index a8e5c83fc..d5fb40130 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -11935,6 +11935,9 @@ export function App({ limit: CONVERSATION_VISIBLE_STEP, }, ); + if (localProjectPathRef.current !== projectPath) { + return; + } const older = directThreadHistoryItemsToMessages(slice.items).map( (message) => ({ role: