fix: address codex migration review feedback

This commit is contained in:
Alex Newman
2026-05-06 14:32:03 -07:00
parent 156062170d
commit a64d60b9cb
3 changed files with 53 additions and 9 deletions
@@ -179,10 +179,7 @@ function isRecord(value: unknown): value is Record<string, unknown> {
}
function isCodexTranscriptWatch(watch: Record<string, unknown>): boolean {
if (watch.name === 'codex' || watch.schema === 'codex') return true;
return typeof watch.path === 'string'
&& watch.path.includes('.codex')
&& watch.path.includes('sessions');
return watch.name === 'codex' || watch.schema === 'codex';
}
function disableCodexTranscriptAgentsContext(): boolean {
@@ -286,7 +283,7 @@ export function uninstallCodexCli(): number {
}
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
console.error(`\nLegacy AGENTS.md cleanup failed: ${message}`);
console.error(`\nLegacy context cleanup failed: ${message}`);
failed = true;
}