补充 DirectProject 历史读取错误提示

捕获历史切片读取失败并保留加载状态清理。
This commit is contained in:
2026-09-15 19:49:52 +08:00
parent 3737b91467
commit a5b2cec079
+4
View File
@@ -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;
}