chore: rebuild CentOS7 release package

This commit is contained in:
shiyue
2026-07-01 00:00:29 +08:00
parent 8e4b20f15d
commit ddd97398e7
10 changed files with 251 additions and 37 deletions

View File

@@ -170,13 +170,14 @@ function createCodexRolloutStore(deps) {
return walkFiles(codexSessionsDir, []).filter((filePath) => filePath.endsWith('.jsonl')).sort().reverse();
}
function getImportedCodexThreadIds() {
function getImportedCodexThreadIds(agent = 'codex') {
const field = agent === 'codexapp' ? 'codexAppThreadId' : 'codexThreadId';
const imported = new Set();
try {
for (const f of fs.readdirSync(sessionsDir).filter((name) => name.endsWith('.json'))) {
try {
const session = normalizeSession(JSON.parse(fs.readFileSync(path.join(sessionsDir, f), 'utf8')));
if (session.codexThreadId) imported.add(session.codexThreadId);
if (session[field]) imported.add(session[field]);
} catch {}
}
} catch {}