防止跨项目历史切片串写
历史请求返回后校验当前项目路径,丢弃过期结果。
This commit is contained in:
@@ -11935,6 +11935,9 @@ export function App({
|
||||
limit: CONVERSATION_VISIBLE_STEP,
|
||||
},
|
||||
);
|
||||
if (localProjectPathRef.current !== projectPath) {
|
||||
return;
|
||||
}
|
||||
const older = directThreadHistoryItemsToMessages(slice.items).map(
|
||||
(message) => ({
|
||||
role:
|
||||
|
||||
Reference in New Issue
Block a user