防止跨项目历史切片串写

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