防止跨项目历史切片串写

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