chore: rebuild CentOS7 release package
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user