fix(codex): use resume-compatible flags

This commit is contained in:
Jayesh Betala
2026-04-29 11:43:17 +05:30
parent e8893a18b1
commit 29c18e75ed
3 changed files with 16 additions and 4 deletions
+10
View File
@@ -1297,6 +1297,16 @@ describe('Codex skill', () => {
expect(content).toContain('codex exec resume');
});
test('codex/SKILL.md resume command only uses resume-supported flags', () => {
const content = fs.readFileSync(path.join(ROOT, 'codex', 'SKILL.md'), 'utf-8');
const match = content.match(/codex exec resume[^\n]+/);
expect(match).not.toBeNull();
const resumeCommand = match![0];
expect(resumeCommand).not.toContain(' -C ');
expect(resumeCommand).not.toContain(' -s read-only');
expect(resumeCommand).toContain("-c 'sandbox_mode=\"read-only\"'");
});
test('codex/SKILL.md contains cost tracking', () => {
const content = fs.readFileSync(path.join(ROOT, 'codex', 'SKILL.md'), 'utf-8');
expect(content).toContain('tokens used');