mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-17 23:30:09 +02:00
Merge PR #1270: codex exec resume drops -C/-s flags, uses sandbox_mode config
# Conflicts: # codex/SKILL.md # codex/SKILL.md.tmpl
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user