fix: 发布 1.1.64,红队流程八项修复

新建靶标才换角色稿;计分、预检和并发名额按现行规则走。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-08 11:04:18 +08:00
1 parent f4f43c1733
commit ed676bcb11
22 files changed
+273 -1771

No files matched your search

-14
View File
@@ -143,20 +143,6 @@ function isSubagentHeader(header) {
return header.origin === "subagent" || (header.delegationDepth ?? 0) > 0;
}
export function climbToMain(startId, getHeader) {
let currentId = startId;
const seen = new Set();
while (currentId && !seen.has(currentId)) {
seen.add(currentId);
const header = getHeader(currentId);
if (!isSubagentHeader(header) || !header?.parentSession) {
return currentId;
}
currentId = header.parentSession;
}
return startId;
}
export function pendingInboxInserts(events) {
const list = Array.isArray(events) ? events : [];
let lastEnd = -1;