防止跨项目历史切片串写

历史请求返回后校验当前项目路径,丢弃过期结果。
This commit is contained in:
2026-09-15 19:59:22 +08:00
parent be7b7a2e61
commit 60dca202e5
+3
View File
@@ -11892,6 +11892,9 @@ export function App({
limit: CONVERSATION_VISIBLE_STEP,
},
);
if (localProjectPathRef.current !== projectPath) {
return;
}
const older = directThreadHistoryItemsToMessages(slice.items).map(
(message) => ({
role: