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; }