From a00c5de5ad9a2d22683458678ac2b8fbd1f41b11 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:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20DirectProject=20=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E8=AF=BB=E5=8F=96=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 捕获历史切片读取失败并保留加载状态清理。 --- apps/ai-game-creator-shell/src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 0ffa4d585..3352b92dd 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -11931,6 +11931,10 @@ export function App({ directHistoryOldestItemIdRef.current = older.find((message) => message.messageId)?.messageId ?? directHistoryOldestItemIdRef.current; + } catch (error) { + setWorkspaceStatus( + `读取更早的对话历史失败:${error instanceof Error ? error.message : String(error)}`, + ); } finally { directHistoryLoadingRef.current = false; }