diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 7d5c587b2..87c822d6a 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -11906,6 +11906,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; }